// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!WIDTH LUMA.w 2 *
//!HEIGHT LUMA.h 2 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_2x_LineArt] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_2x_LineArt] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.110424026846886,0.101359963417053,-0.454222589731216,-0.028233371675014);
res += vec4(0.147623419761658,0.004731631837785,0.068526260554790,0.100324861705303) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.027897510677576,0.028401192277670,0.035522937774658,-0.190581932663918) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.121627457439899,0.012969366274774,-0.004581722430885,0.035493023693562) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.001627022749744,-0.018385849893093,0.031991992145777,-0.024236548691988) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.347158163785934,-0.016670685261488,-0.006911284290254,0.082138650119305) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.253108263015747,-0.013381832279265,0.005894305650145,0.276137083768845) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.051724225282669,0.004716659430414,0.109088316559792,-0.231943801045418) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.171173557639122,-0.060102451592684,0.001709175412543,0.161868616938591) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.060971662402153,-0.001940014190041,-0.142428994178772,-0.050773613154888) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.045292742550373,-0.015246597118676,0.051751956343651,0.001715715508908) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.095583789050579,-0.090180918574333,0.184308961033821,-0.306571036577225) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.030998898670077,0.130428031086922,0.325693696737289,0.432981550693512) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.165927678346634,0.603959202766418,0.566140115261078,-0.556913018226624) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.198400422930717,-0.086093485355377,-0.223830118775368,0.359460353851318) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.383028179407120,0.034525793045759,-0.112038910388947,-0.106523334980011) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.116278074681759,0.101739883422852,-0.088765755295753,-0.048761051148176) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.023518640547991,-1.314874529838562,-0.174508526921272,-0.019343215972185) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.008571700192988,0.018154755234718,0.008348201401532,0.136825293302536) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.030558984726667,0.024173520505428,0.128182023763657,-0.068321175873280) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.013492113910615,0.030858805403113,-0.060884844511747,-0.068052090704441) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.119861878454685,-0.024094205349684,0.040635991841555,-0.057599864900112) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.011791546829045,0.002493401058018,0.081869579851627,0.036085482686758) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.105627469718456,0.055812619626522,0.048593126237392,0.059290107339621) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.038088165223598,0.010001801885664,-0.091301746666431,0.068720139563084) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.060384601354599,-0.021044522523880,0.013715733774006,0.015533451922238) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.036307953298092,0.002596511272714,0.958284258842468,1.011285781860352) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_2x_LineArt] feature map 2

vec4 hook()
{
vec4 res = vec4(-0.148841366171837,0.026994457468390,0.056506607681513,-0.638736426830292);
res += vec4(0.011294311843812,-0.105059698224068,-0.053267106413841,-0.003743818495423) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.062352400273085,-0.152365878224373,0.023630077019334,-0.013480491936207) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.011558298021555,0.157751262187958,0.153107866644859,0.018654175102711) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.036753829568624,0.112940259277821,0.025522233918309,0.020652865990996) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.009799633175135,0.032819129526615,0.047334063798189,-0.025116147473454) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.003984368406236,0.094704180955887,0.017537601292133,-0.023462852463126) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.043970659375191,0.166054934263229,0.189094871282578,-0.004959154408425) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.191872462630272,-0.219020381569862,-0.082989715039730,-0.002667526481673) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.048397284001112,-0.190528690814972,-0.169548898935318,0.000528232601937) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.016353540122509,0.102897413074970,0.021213170140982,0.017724152654409) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.008730674162507,-0.181564509868622,0.070617444813251,0.084019772708416) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.168865770101547,-0.085617087781429,0.226091429591179,0.078455962240696) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.564279139041901,0.639618933200836,-0.869929194450378,0.721901118755341) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.052683889865875,-0.285740077495575,0.237121611833572,0.074023924767971) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.029095981270075,0.148339912295341,0.054480656981468,0.006168160587549) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.004146578721702,0.002200964139774,0.087304405868053,0.068778701126575) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.015499098226428,-0.042249757796526,-0.316861420869827,-0.152464598417282) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.690295636653900,-0.139706000685692,0.369948863983154,0.196724548935890) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.083699353039265,0.032007448375225,0.083480484783649,-0.095741964876652) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.067768700420856,-0.029802002012730,-0.063157439231873,-0.000036699086195) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.006136837881058,0.084172867238522,0.032329522073269,-0.014948738738894) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.060534469783306,-0.126784130930901,-0.043817985802889,0.009505294263363) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.038850229233503,-0.039006333798170,-0.129509627819061,0.007905834354460) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.073863148689270,0.236618176102638,0.005249104462564,-0.000753140251618) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.013064141385257,-0.219665065407753,-0.003370222402737,0.001858004950918) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.039522707462311,0.909555077552795,1.060024857521057,-0.067346028983593) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_2x_LineArt] feature map 3

vec4 hook()
{
vec4 res = vec4(-0.127378806471825,0.094004422426224,0.085145518183708,-0.070885509252548);
res += vec4(0.004497508052737,0.018364226445556,-0.014851935207844,0.061266493052244) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.074274137616158,-0.072521612048149,0.045198794454336,0.025706326588988) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.004404899664223,0.024848543107510,-0.078724473714828,0.165957197546959) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.017121590673923,0.065123677253723,0.015816358849406,-0.067592069506645) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.034386441111565,0.005740924272686,-0.013908741995692,-0.193627431988716) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.155898660421371,-0.042208526283503,0.108064569532871,-0.001388622215018) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.153485402464867,0.194149583578110,-0.040067795664072,-0.169592201709747) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.153585478663445,0.519416272640228,-0.361391514539719,0.160974189639091) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.011786260642111,-0.038182970136404,0.059003345668316,0.640334606170654) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.045909475535154,0.025519974529743,0.035816706717014,0.009513301774859) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.030315434560180,-0.052807066589594,-0.074914366006851,-0.030216922983527) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.387466639280319,0.373234599828720,-0.243255779147148,0.019287399947643) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.567818164825439,-0.641181826591492,-0.348499864339828,-0.880358099937439) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.093782134354115,-0.321423619985580,-0.242576003074646,0.100523069500923) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.055934749543667,-0.140041381120682,-0.073910899460316,0.093990609049797) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.012550443410873,0.014704558067024,-0.062964029610157,0.031513303518295) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.048639252781868,-0.191659256815910,0.335070341825485,0.222946330904961) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.465402871370316,0.129283070564270,0.622792840003967,0.068786621093750) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.351970553398132,-0.029178479686379,0.209556847810745,-0.336540699005127) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.099309407174587,0.092755109071732,0.079140596091747,0.058607660233974) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.071960091590881,-0.005703539587557,0.014375565573573,-0.062186002731323) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.272970229387283,0.005325675010681,-0.064720362424850,0.016843751072884) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.342713326215744,0.038182109594345,0.176035761833191,0.028473028913140) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.212299719452858,-0.041540484875441,-0.100632779300213,0.013987165875733) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.046848844736814,-0.002570458687842,-0.035645876079798,0.011693340726197) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.113685652613640,0.672115921974182,0.242427691817284,-0.197404220700264) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_2x_LineArt] feature map 4

vec4 hook()
{
vec4 res = vec4(0.059153702110052,0.020557615906000,0.266190499067307,-0.011978890746832);
res += vec4(0.024273669347167,-0.057718124240637,0.052627004683018,-0.090617060661316) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.062617905437946,0.054582666605711,-0.070593364536762,-0.022935060784221) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.133675441145897,-0.048150572925806,0.163955375552177,0.038927365094423) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.109381541609764,0.029021738097072,-0.020643573254347,0.133385300636292) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.041967790573835,-0.072493724524975,0.015960145741701,-0.026665061712265) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.068670086562634,0.030415778979659,0.015354073606431,0.082162216305733) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.238085195422173,-0.010997986420989,-1.425936937332153,0.773044943809509) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.527280390262604,-0.133658275008202,-0.300870776176453,-0.759404361248016) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.020670816302299,0.060656394809484,-0.047164727002382,-0.103517137467861) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.026828330010176,0.035299390554428,-0.030878692865372,-0.015615846961737) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.152353748679161,0.028787722811103,0.299945205450058,-0.034441396594048) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.470902353525162,-0.584556818008423,-0.487573087215424,-0.706657648086548) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.330351799726486,0.045317195355892,-0.261703073978424,0.338541239500046) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.141294300556183,0.017171179875731,0.286021292209625,0.266800343990326) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.004506501834840,-0.135914564132690,0.061917152255774,0.008679081685841) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.051492564380169,0.166719824075699,-0.039506725966930,0.105842240154743) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.096596322953701,0.211311399936676,0.099711544811726,-0.046412151306868) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.169935733079910,0.562626183032990,-0.000433805194916,0.242563083767891) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.011321981437504,0.008225904777646,-0.057637963443995,-0.254620224237442) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.027998067438602,0.185691311955452,-0.060965903103352,0.007951484993100) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.003044704673812,-0.129143938422203,0.010446412488818,-0.019381452351809) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.015181151218712,-0.154593303799629,-0.025669954717159,-0.055132996290922) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.017372440546751,-0.294596225023270,0.046726699918509,0.064404450356960) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.010033065453172,-0.033518608659506,-0.022976201027632,-0.016603451222181) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.006166904699057,-0.145441457629204,0.039260998368263,0.026651041582227) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.180690571665764,-0.031418930739164,0.000868989271112,-0.310656279325485) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_2x_LineArt] feature map 5

vec4 hook()
{
vec4 res = vec4(0.253473132848740,0.070411823689938,-0.075204946100712,-0.069513984024525);
res += vec4(-0.076102107763290,0.011070474050939,-0.104453466832638,-0.004789168946445) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.029531694948673,-0.017768951132894,-0.049223538488150,-0.000733294873498) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.106673516333103,-0.031884960830212,-0.157947942614555,-0.003475572215393) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.017195517197251,0.033448133617640,0.309594422578812,-0.020269131287932) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.077502131462097,-0.016695480793715,0.010438290424645,0.010174898430705) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.080882497131824,-0.064875423908234,-0.036928121000528,0.020943215116858) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.146018177270889,0.234971314668655,0.191457390785217,-0.014126223511994) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.083911411464214,-0.226818948984146,-0.063324503600597,0.019525675103068) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.038375597447157,0.004160117357969,-0.202996984124184,-0.012947085313499) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.077135778963566,0.028884947299957,0.156778827309608,-0.003814134513959) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.021716803312302,0.148501411080360,0.086785905063152,-0.001674280152656) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.299048572778702,0.555131912231445,-0.246998772025108,-0.028919711709023) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.242059484124184,-0.643376827239990,0.194386869668961,-0.024641199037433) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.267551034688950,-0.003503118408844,0.129319295287132,-0.188073888421059) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.042724836617708,-0.048454884439707,-0.099731877446175,0.071292035281658) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.035636447370052,-0.069508656859398,0.094318941235542,0.003124081296846) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.072096578776836,0.240515172481537,0.008575128391385,0.021861085668206) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.144251272082329,-0.135452389717102,-0.114948391914368,0.060320157557726) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.325210124254227,-0.062640018761158,-0.038037803024054,-0.547101318836212) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.129015892744064,0.016832575201988,-0.142925977706909,-0.104447968304157) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.005669016856700,0.001079998794012,0.047078527510166,-0.015442812815309) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.006575376726687,0.002325609093532,-0.089087359607220,0.012881333939731) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.044321559369564,-0.001877052825876,0.333644241094589,0.619259834289551) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.210579693317413,-0.010906771756709,-0.155604586005211,0.181630507111549) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.148899331688881,-0.004767672158778,0.093227908015251,0.009859983809292) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.042125146836042,-0.190449312329292,0.879324018955231,-0.188208922743797) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_2x_LineArt] feature map 6

vec4 hook()
{
vec4 res = vec4(-0.107684418559074,-0.404407471418381,0.152955994009972,0.291300803422928);
res += vec4(0.072317659854889,-0.007577207405120,0.011916016228497,0.099896229803562) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.280721724033356,0.010836454108357,0.118564054369926,-0.015293795615435) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.214029029011726,-0.000903276551981,-0.131340548396111,-0.071186468005180) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.138233318924904,-0.011181566864252,-0.024553613737226,-0.065441153943539) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.030620465055108,0.005248530302197,-0.011579013429582,0.071388192474842) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.062198910862207,-0.001136824605055,0.067572250962257,-0.082370325922966) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.272567987442017,-0.023109093308449,-0.606147646903992,-0.048314556479454) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.351040542125702,-0.095720797777176,-1.015196800231934,-0.194039568305016) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.123244620859623,-0.009967915713787,-0.036138847470284,-0.164360687136650) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.100312329828739,0.005415224004537,0.061140622943640,0.023704973980784) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.097051821649075,-0.267562240362167,0.100038811564445,0.020622091367841) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.384225457906723,-0.061169676482677,0.021492343395948,-0.115269780158997) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.735694944858551,0.941429257392883,0.572867512702942,-0.523297548294067) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.316164761781693,0.042208049446344,0.063857495784760,-0.101712025702000) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.139482021331787,-0.032801609486341,-0.010864713229239,-0.100986942648888) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.026926290243864,-0.026941370218992,0.047395795583725,-0.062939435243607) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.026217678561807,-0.038194987922907,0.008045379072428,-0.121747024357319) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.021977812051773,0.110084503889084,-0.074036508798599,-0.314657121896744) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.041157711297274,-0.045660313218832,-0.038508296012878,-0.046086933463812) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.040227297693491,0.012431287206709,0.029755776748061,0.006783006712794) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.087332837283611,0.024356566369534,-0.048140592873096,0.022994030267000) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.117027632892132,-0.053283188492060,0.061795800924301,0.055383879691362) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.041515164077282,-0.006135569885373,-0.002661431906745,0.045077808201313) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.089500792324543,0.005480611696839,0.019655065611005,0.063782006502151) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.223017990589142,0.001450720825233,-0.034156829118729,-0.022609062492847) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.960986018180847,0.053605496883392,-0.002915444783866,0.328583449125290) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 1_1

vec4 hook()
{
vec4 res = vec4(0.019613042473793,-0.032683502882719,-0.473181337118149,0.057773698121309);
res += mat4(0.024000773206353,0.092593096196651,0.071923151612282,0.007336061447859,0.068855218589306,-0.083475470542908,0.045688103884459,-0.005404449999332,0.105450525879860,0.041945107281208,-0.068341620266438,0.033800281584263,-0.093050852417946,-0.016925113275647,0.008586606942117,-0.010983184911311) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.078872144222260,-0.020170813426375,-0.024010159075260,-0.026547888293862,0.231299623847008,-0.057407386600971,0.052103474736214,0.111168384552002,-0.059001803398132,-0.156063720583916,-0.029065737500787,-0.132328674197197,-0.100379347801208,-0.031168112531304,0.045586626976728,-0.021614460274577) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.037310205399990,-0.028427839279175,-0.005955822765827,0.011624795384705,-0.086924329400063,-0.159052073955536,0.027475221082568,0.032685842365026,-0.011460891924798,0.173085838556290,0.029618520289660,-0.075266286730766,-0.032639067620039,0.096438884735107,0.046366140246391,-0.027007279917598) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.089047141373158,-0.107064045965672,-0.078531749546528,0.048813220113516,-0.054161380976439,0.007569191046059,-0.030467817559838,0.073355056345463,0.044318635016680,0.148675918579102,-0.057155732065439,-0.126889169216156,0.116008713841438,-0.091350361704826,-0.049005173146725,0.107295237481594) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.015890616923571,0.008428275585175,0.036635767668486,0.026078369468451,0.081645257771015,-0.024818824604154,-0.000373904069420,0.053059142082930,-0.162433058023453,-0.030437488108873,-0.203589618206024,0.566388010978699,-0.157705724239349,-0.111901558935642,0.011490847915411,-0.298966646194458) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.061788517981768,0.086346022784710,0.049904402345419,-0.045528981834650,0.076902292668819,-0.043039396405220,0.115220569074154,-0.056751053780317,-0.036696862429380,-0.154229417443275,0.073517493903637,0.223378479480743,0.036315940320492,0.142196521162987,-0.052771024405956,0.058489255607128) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.068904370069504,-0.118354849517345,-0.004855575039983,0.046850949525833,0.051966466009617,0.157042771577835,-0.098936878144741,0.103470876812935,-0.051397655159235,-0.025284431874752,0.443484038114548,0.123423837125301,0.329867899417877,0.017433440312743,-0.165773391723633,0.010129570029676) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.096550419926643,-0.152825653553009,-0.005182410590351,0.006464112550020,-0.010709717869759,0.007393223699182,0.054126907140017,0.024623328819871,0.041527114808559,0.139724940061569,0.318384855985641,-0.321967124938965,-0.175329208374023,0.043830282986164,0.112439893186092,0.198864862322807) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.041944425553083,-0.043685462325811,0.074172571301460,-0.057431589812040,0.134934619069099,0.079599708318710,-0.131676852703094,-0.064502857625484,-0.038979277014732,0.043027542531490,0.148501724004745,-0.151514127850533,0.117981508374214,0.074837133288383,-0.078056275844574,-0.120851479470730) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.007323071826249,-0.002701855497435,-0.072790965437889,0.041965030133724,0.080539330840111,-0.008884216658771,0.034262150526047,0.024517050012946,-0.183289319276810,-0.064625814557076,-0.069765314459801,0.015223556198180,-0.215542361140251,-0.093893542885780,-0.348808169364929,-0.027624778449535) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.162354707717896,-0.143498525023460,-0.026896508410573,-0.082098953425884,-0.047567132860422,-0.042470570653677,-0.044283326715231,-0.100110106170177,0.086621515452862,-0.114027522504330,0.008089846000075,0.196655184030533,-0.286640673875809,-0.295370250940323,-0.011503121815622,-0.037964209914207) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.001697735744528,0.081549644470215,-0.102120652794838,-0.041528675705194,0.070437014102936,0.273275464773178,-0.013372439891100,-0.085627324879169,0.030676458030939,0.094192564487457,-0.032347191125154,-0.020755719393492,-0.107500270009041,0.082722842693329,-0.014083726331592,-0.071519225835800) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.356030553579330,0.075164124369621,-0.074667766690254,-0.006990502588451,0.007080705370754,0.079874597489834,-0.082086324691772,-0.087981350719929,0.070510454475880,-0.079393908381462,0.151063621044159,0.038198355585337,0.048038855195045,-0.051044769585133,-0.076082065701485,-0.001270068227313) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.139716684818268,0.037812095135450,0.088941313326359,0.031382549554110,0.071134977042675,0.065042793750763,0.025301763787866,0.468413114547729,0.091514043509960,0.025185657665133,-0.099097847938538,-0.512473881244659,-0.046074461191893,0.002478771144524,-0.197142317891121,0.046391062438488) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.140677288174629,0.007076517213136,-0.005170388147235,0.005369748920202,0.048021443188190,-0.341195940971375,0.025322984904051,-0.071665436029434,-0.046046808362007,0.334444642066956,0.027426604181528,0.112271815538406,0.068590432405472,0.132023781538010,-0.003065838245675,0.044640779495239) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.122248597443104,-0.103578940033913,-0.059995621442795,0.056629285216331,-0.169349327683449,-0.082303419709206,0.109844967722893,0.041218999773264,0.110679924488068,-0.147273734211922,-0.621612548828125,0.008536964654922,0.049848768860102,-0.088845834136009,0.493693709373474,-0.025389252230525) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.085380420088768,-0.072726301848888,-0.046303097158670,0.072879835963249,0.144721657037735,0.064362972974777,-0.067555539309978,-0.211540371179581,-0.090212166309357,0.066133171319962,0.283600300550461,0.333303153514862,0.257721483707428,0.045677904039621,-0.163720577955246,-0.080436259508133) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.057849995791912,-0.069267705082893,-0.077170312404633,0.088680833578110,-0.103666603565216,-0.109156541526318,0.046425323933363,0.006505092140287,0.010875560343266,0.122982114553452,-0.036701556295156,-0.085865303874016,0.009183347225189,0.257548213005066,-0.051818087697029,0.066967546939850) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.223700851202011,-0.148501396179199,0.159363627433777,-0.048958789557219,0.047595463693142,0.007196320686489,-0.016121029853821,-0.034476310014725,-0.290599226951599,0.074108369648457,-0.111739978194237,0.059872455894947,-0.000670394103508,0.079721957445145,0.047754526138306,0.034552555531263) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.079810597002506,0.045035332441330,0.030389128252864,0.027923569083214,-0.022282050922513,-0.057057205587626,0.010404563508928,0.189871981739998,0.189833998680115,0.063392154872417,-0.027292029932141,0.080103270709515,-0.009662899188697,0.025113459676504,0.063647486269474,0.000678487413097) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.123446457087994,0.025919251143932,-0.003278682474047,-0.036304354667664,0.058547779917717,-0.190542489290237,0.030015230178833,0.031670279800892,0.053991567343473,-0.272286772727966,0.000933261762839,0.053398139774799,-0.082732126116753,-0.129620924592018,-0.005419392138720,-0.013848631642759) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.119173690676689,-0.168415665626526,-0.223313897848129,-0.067153044044971,-0.137045785784721,0.010939206928015,0.042630750685930,-0.307960212230682,-0.408513665199280,0.007160058710724,0.167439028620720,0.039609082043171,-0.097248569130898,0.112637460231781,0.028953704982996,-0.020867159590125) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.077327176928520,-0.041806809604168,-0.171239733695984,0.055490251630545,-0.050928272306919,0.115411691367626,-0.045742627233267,-0.274694651365280,0.154058530926704,0.092386282980442,0.212932214140892,-0.273637533187866,-0.016101680696011,0.175544157624245,-0.084136575460434,0.013582337647676) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.061573054641485,-0.160479605197906,0.064167208969593,-0.049579929560423,0.083194732666016,0.216946363449097,0.024224897846580,0.013970358297229,0.120146967470646,-0.016016718000174,0.034990373998880,-0.070967994630337,0.037415839731693,0.063750907778740,-0.006125518586487,-0.001161093008704) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.158420950174332,-0.003342245705426,0.025546463206410,0.007425741758198,-0.126604422926903,-0.017033791169524,-0.286778032779694,0.186391785740852,-0.433956354856491,-0.061133287847042,-0.157452985644341,0.031352411955595,-0.460600078105927,0.069219924509525,0.100120775401592,-0.047578182071447) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.057843320071697,0.074203416705132,0.069938205182552,0.041644249111414,-0.206848606467247,0.059840019792318,0.226350218057632,0.369303733110428,0.066385827958584,-0.031221613287926,-0.183544635772705,-0.145196661353111,0.085388965904713,0.119200602173805,-0.038320519030094,-0.058606859296560) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.127146035432816,-0.024759041145444,-0.071964718401432,-0.069384567439556,0.180087476968765,-0.158923014998436,-0.078630328178406,0.052243266254663,0.187982752919197,0.158895507454872,-0.020362295210361,-0.036878131330013,0.032571550458670,0.205622881650925,0.076289527118206,-0.045741628855467) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.025201780721545,-0.021535400301218,-0.070547446608543,-0.017359975725412,0.038577906787395,0.052658025175333,-0.022842302918434,-0.019237400963902,-0.057685509324074,0.034447763115168,-0.122992336750031,0.035202004015446,0.088527746498585,-0.138508155941963,0.030184291303158,0.033919084817171) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.045113276690245,0.074779339134693,-0.037979215383530,0.009524601511657,-0.003907369449735,-0.114685900509357,-0.021949226036668,-0.065903015434742,0.017039380967617,-0.032153926789761,-0.187367290258408,0.054487295448780,-0.132258027791977,-0.136915713548660,0.010338912717998,-0.054228864610195) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.004394235089421,0.060002036392689,-0.046429354697466,-0.011542677879333,-0.208680078387260,-0.093997187912464,-0.116955637931824,-0.025851598009467,0.093633241951466,-0.044944725930691,-0.008142260834575,-0.007988170720637,0.095939472317696,-0.056601673364639,0.074949882924557,-0.171283811330795) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.075061634182930,-0.102804325520992,0.037666622549295,0.026217389851809,-0.028367189690471,0.045279573649168,-0.068541839718819,-0.034021548926830,0.002913332311437,-0.133375242352486,-0.027600349858403,0.034898113459349,0.210873961448669,-0.053584016859531,0.038370441645384,-0.130862310528755) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.086022786796093,0.085185453295708,0.169653356075287,0.036246474832296,0.055458683520555,-0.092158272862434,0.098397932946682,-0.071876704692841,0.070616759359837,-0.005782782100141,0.068701468408108,-0.073301576077938,-0.061598375439644,0.048502046614885,-0.124593436717987,-0.174927711486816) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.018058029934764,0.202900961041451,0.063558347523212,-0.184207737445831,-0.084084451198578,-0.013696136884391,-0.000320580933476,-0.149400651454926,-0.070430852472782,0.053948480635881,0.036656696349382,-0.084102652966976,0.049826961010695,0.407445281744003,0.052865505218506,-0.119841687381268) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.039088986814022,-0.074540190398693,-0.160733938217163,0.036999691277742,-0.065355211496353,-0.023457555100322,0.075323261320591,0.032130148261786,0.096641086041927,0.019720725715160,-0.136669248342514,-0.009520109742880,0.180194407701492,-0.219885170459747,0.148185342550278,-0.142772361636162) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.290179461240768,-0.063139729201794,-0.146444976329803,0.426108390092850,0.061023343354464,0.026876943185925,0.022384567186236,-0.123454585671425,0.197211667895317,0.106299519538879,0.024868890643120,0.038965798914433,0.034434936940670,-0.182777598500252,0.386719286441803,-0.016701279208064) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.007233833894134,-0.035555277019739,-0.032250594347715,-0.097149424254894,0.102519027888775,0.186851397156715,0.086148686707020,-0.055807568132877,-0.118318133056164,0.055808145552874,0.276777684688568,-0.126612558960915,0.151558175683022,0.281528025865555,-0.105210334062576,-0.144631981849670) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.033233739435673,-0.080495215952396,-0.000055813099607,-0.028352435678244,-0.057914242148399,0.078477755188942,0.069537095725536,0.041460923850536,-0.112514600157738,-0.101876161992550,0.101216673851013,-0.217188119888306,-0.220127031207085,0.061380509287119,0.051427960395813,-0.010370113886893) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.118637986481190,0.134835228323936,-0.064641721546650,0.051705740392208,-0.201785534620285,-0.010403285734355,-0.043720282614231,0.071979425847530,0.025694880634546,0.131468072533607,-0.022318398579955,0.067955359816551,0.110394209623337,-0.102654501795769,0.021957786753774,-0.036746129393578) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.010197505354881,-0.002030454343185,0.021160608157516,-0.058353379368782,0.019882570952177,-0.113286577165127,-0.071188054978848,-0.003886486636475,-0.010780527256429,-0.030416993424296,0.028197878971696,0.078282959759235,0.014163496904075,0.240148082375526,-0.119040720164776,-0.011393068358302) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.138302281498909,0.027260148897767,-0.003780629485846,0.066290795803070,-0.060010608285666,0.053606759756804,0.013886913657188,0.030852435156703,-0.145453900098801,0.064808346331120,-0.059768896549940,0.114471964538097,0.102954700589180,0.152234554290771,-0.106860369443893,0.131162494421005) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.169847145676613,0.169334933161736,0.129768639802933,0.035051885992289,-0.261076152324677,0.102586038410664,0.196699172258377,0.114214375615120,0.091592125594616,-0.202661305665970,0.010931854136288,-0.011953784152865,0.049064282327890,0.043959155678749,0.231677010655403,-0.031247686594725) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.076957702636719,0.070554777979851,-0.044740043580532,-0.066249243915081,-0.014850018545985,0.171505048871040,-0.020326927304268,-0.117631919682026,-0.016624152660370,0.029923290014267,-0.045160554349422,-0.018520841374993,0.030987868085504,0.023412112146616,-0.121909588575363,0.006724661681801) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.169883117079735,-0.126614853739738,0.076188623905182,0.018791105598211,0.204520508646965,-0.087240077555180,-0.192694246768951,0.020487006753683,-0.158278286457062,0.062726557254791,0.082866244018078,0.015857582911849,0.052594341337681,-0.030232572928071,0.114799223840237,0.003003118094057) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.043782476335764,-0.091060243546963,-0.125163733959198,0.022419726476073,-0.275127649307251,-0.014161021448672,0.095574565231800,-0.044349521398544,0.166302055120468,0.014866559766233,-0.026379832997918,-0.250088065862656,-0.095381617546082,-0.087342612445354,-0.061039481312037,-0.040406715124846) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.070350997149944,0.013443041592836,-0.121723711490631,-0.038513772189617,0.109011426568031,0.128525823354721,-0.008485657162964,0.099835433065891,0.062363889068365,0.082010224461555,0.008492830209434,0.089756928384304,0.011748162098229,-0.055789496749640,-0.070980645716190,0.065063811838627) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.147757127881050,0.024053242057562,-0.023554893210530,-0.008704720996320,-0.064683526754379,0.049780607223511,-0.134959906339645,0.025270367041230,0.015899792313576,0.066215924918652,0.052715275436640,0.018504237756133,0.096874043345451,0.004749675747007,-0.062151424586773,-0.077604755759239) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.102076143026352,-0.048714697360992,-0.091743521392345,-0.081033863127232,-0.044700693339109,-0.190992400050163,-0.112188205122948,0.012735283933580,0.018147312104702,-0.049053065478802,0.034642290323973,-0.015194551087916,-0.014805622398853,0.003648873884231,-0.008498623967171,-0.084160819649696) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.126180112361908,0.082270339131355,-0.014804065227509,0.060570862144232,-0.077337786555290,0.085205711424351,-0.149556189775467,0.074615657329559,-0.039140462875366,0.058492112904787,0.031684044748545,-0.032595846801996,0.049694653600454,-0.013451713137329,0.057907000184059,-0.067282885313034) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.073184356093407,-0.118724986910820,-0.039234671741724,-0.077589809894562,0.036723036319017,0.005590861663222,-0.000711465021595,-0.000370237510651,-0.091346383094788,0.101073957979679,-0.013165908865631,-0.036558106541634,0.128657430410385,-0.066606573760509,-0.253698766231537,-0.034478474408388) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.040820572525263,-0.033560346812010,-0.133102104067802,0.313508242368698,0.019919617101550,-0.157264813780785,-0.062480639666319,-0.061064746230841,0.027478724718094,0.072012253105640,-0.055721636861563,-0.066738918423653,-0.128568217158318,0.160796865820885,-0.152488067746162,-0.015967475250363) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.085459150373936,-0.423544585704803,0.055475726723671,-0.016826933249831,-0.034661084413528,-0.069413222372532,-0.157847091555595,0.067007601261139,-0.153259724378586,-0.006463571451604,0.065757870674133,0.072526246309280,-0.092412717640400,0.234476834535599,-0.025512777268887,0.052318230271339) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.175339967012405,0.120612516999245,0.283926844596863,-0.031790547072887,0.096744135022163,0.034497089684010,0.411482512950897,-0.043216876685619,0.250705510377884,-0.242162987589836,0.162725269794464,0.017905097454786,0.073667228221893,-0.099890217185020,-0.328279763460159,-0.004440962802619) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.182237043976784,0.081621117889881,-0.134328573942184,-0.276384383440018,0.107606820762157,0.024460319429636,-0.197085440158844,-0.176235869526863,-0.170810788869858,-0.136620193719864,0.094354137778282,0.070309415459633,-0.077826723456383,0.057669639587402,-0.239781245589256,0.091146543622017) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.043034255504608,0.171913146972656,0.129210233688354,0.044317334890366,-0.093347303569317,0.090994976460934,-0.202102571725845,0.009989470243454,-0.063174575567245,0.161868751049042,-0.005015443544835,-0.036050062626600,-0.149883523583412,0.047119703143835,-0.109146997332573,0.091646544635296) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.013151520863175,-0.018591597676277,-0.013097760267556,0.813475430011749) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 1_2

vec4 hook()
{
vec4 res = vec4(0.003537551499903,-0.403734624385834,0.035329829901457,0.041611280292273);
res += mat4(0.061418123543262,-0.145522445440292,0.071225464344025,0.009418563917279,0.062711462378502,-0.007937357760966,-0.054693423211575,-0.141370952129364,-0.086347021162510,-0.011174607090652,0.003198660211638,0.011995033361018,-0.012586321681738,-0.126709535717964,-0.157241150736809,0.129672691226006) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.010868719778955,-0.016788624227047,-0.020448174327612,0.036670617759228,-0.008667666465044,-0.017670495435596,0.135363593697548,0.019094333052635,-0.097355484962463,-0.059334293007851,0.023763496428728,0.192067578434944,0.100891679525375,0.047179311513901,-0.009629596956074,-0.077884651720524) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.026997601613402,-0.135006397962570,0.068127192556858,-0.097379006445408,-0.033738315105438,0.074345849454403,0.080759108066559,0.132333442568779,0.057343177497387,0.105040952563286,0.067192032933235,0.181864067912102,-0.039665956050158,-0.094997346401215,-0.033941403031349,-0.053640022873878) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.027119711041451,0.061692200601101,-0.046270895749331,-0.020692249760032,0.027166901156306,-0.043962176889181,-0.157948106527328,-0.115511618554592,0.058565579354763,-0.073404043912888,0.059305433183908,-0.431692779064178,-0.075615935027599,0.047991108149290,-0.245478630065918,0.315545022487640) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.044595442712307,0.035926420241594,-0.023576213046908,0.130413338541985,0.000865062233061,-0.019762568175793,-0.000587505695876,-0.063662841916084,-0.403940051794052,-0.077159121632576,0.043970711529255,-0.067746587097645,0.222740918397903,-0.098233215510845,0.201275825500488,-0.048340570181608) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.033796403557062,-0.014843177981675,0.110774092376232,0.012299581430852,-0.075870715081692,0.002958817407489,-0.267773419618607,0.170406728982925,0.227579459547997,0.149028301239014,0.112129211425781,0.036111228168011,-0.286932528018951,0.076783180236816,-0.134730800986290,-0.183614462614059) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.028959434479475,0.090634465217590,-0.138435736298561,0.199841767549515,-0.017460683360696,0.017466384917498,-0.001722958055325,0.332809865474701,0.038061719387770,-0.023648858070374,-0.103855125606060,0.194940000772476,0.065754227340221,0.000968633743469,0.267219483852386,-0.227672666311264) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.097599618136883,-0.018904918804765,0.012345231138170,0.001811980619095,-0.103528901934624,0.158505797386169,-0.064369432628155,-0.125829994678497,-0.237460762262344,-0.052873324602842,-0.219169870018959,-0.153821870684624,-0.027231931686401,0.106602460145950,-0.146837174892426,0.018934532999992) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.043355692178011,-0.010259185917675,-0.044074147939682,-0.077635370194912,-0.043303716927767,0.290567874908447,-0.013549046590924,-0.231393203139305,0.222796499729156,0.008979659527540,-0.022937800735235,-0.098104253411293,0.053657416254282,-0.000904534594156,0.148520871996880,0.034538779407740) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.008498783223331,-0.095800884068012,-0.009235517121851,0.086332172155380,-0.158922418951988,-0.060434978455305,0.071900025010109,0.037103638052940,0.008536429144442,-0.102367833256721,0.087642729282379,0.005113626364619,0.000024695033062,0.075188383460045,0.082925982773304,-0.123319156467915) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.092238985002041,-0.077915064990520,-0.165766924619675,-0.068641655147076,-0.115506425499916,-0.124510921537876,0.192259386181831,0.278094589710236,0.143393933773041,0.038265198469162,-0.146535143256187,0.053621295839548,0.025397274643183,-0.574246048927307,0.155370786786079,0.116872310638428) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.142026111483574,0.041311956942081,0.010247221216559,0.004032347816974,0.046389687806368,0.213965833187103,-0.028961844742298,-0.148897603154182,-0.083429798483849,0.031481754034758,0.107993580400944,-0.211289569735527,-0.026773300021887,0.041431482881308,-0.084484606981277,-0.044023185968399) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.021699711680412,0.054925858974457,-0.050249148160219,-0.031898275017738,0.142401069402695,0.023383641615510,-0.004223230760545,-0.188028886914253,0.000268062605755,-0.083858393132687,-0.246499508619308,0.014777766540647,-0.067321173846722,0.167367190122604,0.120803624391556,-0.051372636109591) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.152591377496719,0.114094063639641,-0.083277657628059,-0.021957516670227,-0.313228696584702,0.122413918375969,0.040756881237030,-0.025031406432390,0.382578462362289,-0.031240168958902,0.127646163105965,-0.157225936651230,-0.134944915771484,-0.100225791335106,0.027460917830467,0.117570698261261) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.358720093965530,0.063294179737568,-0.020593434572220,-0.058927308768034,0.282854199409485,-0.029843270778656,0.052047368139029,0.081283785402775,-0.363085001707077,0.118565708398819,-0.040541484951973,0.007250335067511,0.341919451951981,-0.104877315461636,0.109905086457729,0.120610043406487) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.011294509284198,-0.123960927128792,-0.104671128094196,-0.093851573765278,-0.041737429797649,-0.005213837139308,-0.115155547857285,-0.163224622607231,0.022714531049132,-0.024220185354352,-0.254487365484238,0.080097280442715,-0.040199652314186,0.031310964375734,-0.213815912604332,0.035004857927561) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.083142794668674,-0.023699928075075,-0.081712499260902,-0.107795454561710,-0.074188724160194,-0.020896980538964,-0.043151106685400,-0.112246900796890,0.131145521998405,0.121691994369030,0.249200165271759,0.138037905097008,-0.134631782770157,0.005212721880525,-0.156118914484978,-0.222804293036461) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.041144050657749,0.043593037873507,0.154687553644180,0.052377328276634,0.127323210239410,-0.071660354733467,-0.033745583146811,0.220577776432037,-0.211729392409325,-0.052740436047316,-0.041436221450567,-0.022124104201794,0.063162140548229,-0.045996125787497,-0.061468839645386,0.016050294041634) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.032233633100986,0.022006649523973,0.000566182425246,0.085568338632584,0.057662151753902,-0.027497965842485,-0.064566642045975,-0.134319230914116,0.091114118695259,-0.136355847120285,-0.049145109951496,-0.222347632050514,0.045219991356134,-0.059738345444202,-0.144102230668068,0.057107958942652) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.000971835106611,0.223396524786949,0.017149494960904,0.262777745723724,0.016760565340519,0.129183009266853,-0.106798991560936,0.044965762645006,0.117765285074711,0.057581145316362,0.003102194285020,-0.326142609119415,-0.026167361065745,-0.090551130473614,0.162117734551430,0.149794042110443) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.159868389368057,-0.000833882018924,0.007689017802477,-0.133591875433922,-0.065975181758404,0.060466919094324,-0.057530321180820,0.172387808561325,-0.044195987284184,-0.009191687218845,0.054991874843836,0.405564844608307,0.067965552210808,-0.046922042965889,0.081716381013393,0.435757845640182) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.013817034661770,0.079087018966675,-0.139661028981209,-0.186535462737083,0.271510392427444,0.164738208055496,-0.240422755479813,0.067669488489628,0.073490247130394,-0.099723979830742,-0.064727395772934,0.109694242477417,-0.050889223814011,0.013921735808253,-0.077319517731667,-0.190500453114510) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.049331851303577,-0.055779173970222,0.191121384501457,0.253498584032059,-0.078912302851677,-0.086942918598652,0.252252995967865,-0.155993163585663,0.154230087995529,-0.129329159855843,-0.168020248413086,-0.378620266914368,0.008271485567093,0.173430442810059,-0.191427871584892,-0.348932325839996) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.208113238215446,0.011351287364960,-0.068073965609074,0.171250060200691,-0.276979148387909,0.116504766047001,0.011596866883337,-0.211070597171783,0.008275100961328,-0.098787933588028,0.011524107307196,-0.068764440715313,0.117556840181351,-0.042043332010508,0.117506474256516,0.091685593128204) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.067916981875896,0.019026473164558,0.063957728445530,-0.099199332296848,-0.001385356532410,0.019647639244795,-0.016719274222851,0.073503546416759,-0.073892116546631,-0.020250914618373,-0.208070144057274,0.164669796824455,0.070427529513836,0.060951728373766,-0.058555394411087,-0.251025140285492) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.077811643481255,0.029068332165480,0.210132524371147,0.007804907392710,-0.128344833850861,-0.051255788654089,0.172251507639885,-0.023027742281556,-0.028267286717892,-0.056405581533909,-0.302140712738037,-0.139721110463142,0.015031249262393,0.268462926149368,-0.012885972857475,-0.138212502002716) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.098355673253536,-0.030700853094459,0.017888806760311,-0.010699326172471,0.038700021803379,-0.055647436529398,0.026268333196640,-0.018962549045682,-0.010821313597262,0.055013298988342,0.015944682061672,-0.040310963988304,-0.153140693902969,-0.019079724326730,-0.049023482948542,0.031111946329474) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.043095160275698,-0.096819974482059,0.051387585699558,-0.039358347654343,0.023484665900469,0.030419085174799,-0.046543184667826,0.058528341352940,0.014986987225711,0.023500567302108,0.019788164645433,-0.023855010047555,-0.062804289162159,0.137735992670059,0.107570327818394,0.073039039969444) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.007604503072798,0.154962167143822,-0.036090236157179,0.008749998174608,-0.002093814313412,-0.045010857284069,0.145694658160210,0.049032989889383,-0.040239129215479,0.139060840010643,-0.092005275189877,-0.119462899863720,-0.064775250852108,-0.026470834389329,0.180516779422760,0.201044157147408) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.048006806522608,0.210985973477364,-0.049510244280100,-0.435915589332581,0.017143448814750,-0.151957526803017,0.215035200119019,-0.189423725008965,-0.030267514288425,0.113244220614433,-0.050463970750570,-0.086039662361145,-0.038466248661280,0.027339976280928,0.068255580961704,0.044752098619938) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.039383258670568,0.015575334429741,0.199710845947266,0.212147250771523,-0.067236497998238,-0.102993503212929,-0.044144313782454,-0.065129302442074,-0.018054183572531,0.020958742126822,0.021327340975404,-0.092306114733219,-0.061759866774082,0.087664172053337,0.265634804964066,-0.024429799988866) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.115271627902985,0.225658074021339,0.194708272814751,0.128035545349121,0.038443654775620,-0.074924051761627,-0.014077787287533,0.136449813842773,0.121345341205597,0.220126062631607,-0.290550142526627,0.066851586103439,-0.164914324879646,0.039220176637173,0.068582929670811,-0.127757206559181) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.131789013743401,0.139463990926743,0.193314358592033,-0.090413585305214,0.027867207303643,-0.039181705564260,0.018867447972298,0.190724134445190,0.139706566929817,0.003604946658015,0.087291084229946,-0.146211832761765,-0.257468819618225,0.154709130525589,-0.118681132793427,-0.160235136747360) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.030428079888225,-0.112239167094231,0.005270343273878,0.003205878660083,0.007921069860458,0.082284934818745,-0.006296535022557,-0.019148401916027,0.005173678975552,-0.044816661626101,-0.183559462428093,0.076991520822048,0.049820873886347,0.191940516233444,-0.174708217382431,0.128207474946976) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.104633241891861,-0.098840527236462,-0.068543426692486,0.209312602877617,0.026957217603922,0.025335399433970,0.035282582044601,0.020393848419189,-0.056867934763432,0.042479131370783,-0.192948684096336,0.101032018661499,0.131376668810844,0.081556364893913,-0.086860567331314,0.188644528388977) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.003253473434597,-0.021750202402472,-0.079259395599365,0.033132459968328,0.067986078560352,-0.013020350597799,0.039319530129433,-0.072662234306335,0.156774386763573,0.255707740783691,0.069742903113365,0.135282620787621,0.204429164528847,-0.000368755310774,-0.363818943500519,0.024737361818552) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.039931025356054,-0.196149602532387,-0.004579982254654,-0.055576995015144,0.073435723781586,-0.184735625982285,-0.017214419320226,-0.010257465764880,0.011123937554657,-0.062297403812408,0.162018969655037,0.091940626502037,0.051885895431042,0.031943295150995,-0.102135546505451,0.249753460288048) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.062109440565109,-0.193661957979202,-0.056966289877892,0.022353336215019,0.035291682928801,0.023709986358881,0.203001692891121,-0.314926594495773,0.025710361078382,-0.146990105509758,0.011989126913249,-0.098714932799339,0.069340884685516,0.164384931325912,0.146920010447502,0.200304776430130) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.091996692121029,-0.055764831602573,0.051433235406876,0.064747013151646,-0.030170271173120,-0.086905598640442,0.045866329222918,0.330056369304657,0.020187102258205,-0.032770503312349,-0.090479254722595,-0.058667838573456,-0.041718889027834,0.026685418561101,-0.021700251847506,-0.219647824764252) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.016321534290910,-0.020983170717955,-0.183355614542961,0.138263180851936,-0.094843864440918,-0.151403993368149,-0.149227052927017,-0.268419235944748,0.018576320260763,0.090223670005798,-0.018451021984220,-0.010678757913411,0.030302787199616,0.005733578000218,-0.263779640197754,0.023403156548738) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.151473566889763,0.051682278513908,0.111272208392620,0.031163575127721,-0.097890585660934,0.127514615654945,0.132287263870239,-0.341252177953720,0.013336404226720,0.066976383328438,-0.082364320755005,0.062677286565304,0.039707813411951,-0.112890690565109,-0.044438671320677,0.236674249172211) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.090657077729702,-0.014850400388241,-0.111996546387672,-0.096110410988331,-0.428541809320450,-0.090825930237770,0.002605817746371,-0.285529315471649,-0.057763237506151,0.091420963406563,-0.093940362334251,-0.215610727667809,-0.151917695999146,-0.066052541136742,-0.105165913701057,-0.018531503155828) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.000890280411113,-0.075630992650986,0.100336119532585,-0.046106640249491,0.098217055201530,-0.126642107963562,-0.035133410245180,0.136128023266792,-0.036995463073254,-0.006857944652438,-0.255061119794846,0.121771804988384,-0.004813588224351,-0.087584301829338,-0.020291779190302,-0.039852589368820) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.012437183409929,-0.188531771302223,-0.079519130289555,-0.118118636310101,0.003960607107729,0.030722793191671,-0.026883292943239,0.189495801925659,0.034662920981646,0.110094286501408,0.204589053988457,-0.041089948266745,0.049492072314024,-0.072411864995956,0.007281809579581,0.005760539323092) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.041280101984739,-0.087247848510742,0.019921094179153,0.002195020671934,-0.143590390682220,-0.067968495190144,-0.017795955762267,0.027231894433498,-0.000412062829128,0.001460672123358,0.094673477113247,0.065893337130547,-0.020249137654901,-0.002461500465870,0.027171185240149,0.030311176553369) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.011123558506370,0.051164299249649,-0.021809745579958,0.078034617006779,-0.019309582188725,-0.147004812955856,0.182225137948990,0.077907495200634,-0.036288518458605,0.100878022611141,-0.030095178633928,-0.068289063870907,0.070649936795235,-0.093474492430687,0.023469755426049,-0.116668917238712) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.175194844603539,-0.108618170022964,0.094271592795849,0.099227130413055,-0.010844173841178,-0.135625138878822,0.105204492807388,0.120951712131500,0.052345741540194,0.081633783876896,0.005418645218015,0.194696232676506,0.053779382258654,-0.306939601898193,-0.068509273231030,0.027946192771196) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.062757968902588,0.233233511447906,0.039868019521236,-0.105570659041405,-0.037032354623079,0.189370065927505,-0.047347199171782,-0.154183417558670,-0.038528840988874,0.063761100172997,-0.045814309269190,-0.121414832770824,-0.175181686878204,-0.323295205831528,-0.053811278194189,-0.093084074556828) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.017276225611567,0.007267568726093,0.206801086664200,-0.098160952329636,0.025529744103551,0.052137650549412,0.029743799939752,-0.127015784382820,-0.149896591901779,-0.013885149732232,0.127694293856621,0.078267723321915,-0.000855219899677,-0.216361194849014,-0.051340367645025,-0.007701457012445) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.210702642798424,0.051806490868330,-0.171459794044495,-0.055663928389549,-0.158041581511497,0.072523310780525,0.009141344577074,0.103778384625912,-0.128218948841095,-0.073229454457760,0.110526196658611,-0.102276228368282,0.117736712098122,-0.300435543060303,-0.023201826959848,0.129338607192039) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.436909347772598,-0.251105844974518,0.105259418487549,-0.006869161501527,0.457664221525192,-0.012804795987904,0.073195770382881,0.025259582325816,0.163875341415405,-0.081917114555836,0.112054429948330,0.240732401609421,-0.295675635337830,-0.113580703735352,0.055591069161892,-0.075746491551399) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.011772477999330,0.119846880435944,-0.178039029240608,-0.048648878931999,-0.047022115439177,-0.029066935181618,-0.339185059070587,0.062844268977642,0.006530610378832,0.060838714241982,0.113666951656342,-0.055260185152292,0.144470274448395,-0.059714552015066,0.141915529966354,0.066703192889690) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.035094439983368,-0.099740467965603,0.001186453155242,0.061418075114489,-0.012599334120750,0.007974248379469,-0.010298229753971,-0.293391704559326,0.066777005791664,-0.012050299905241,0.271263122558594,-0.078148648142815,0.007662251126021,-0.130644097924232,0.041486036032438,-0.001916163368151) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.042401179671288,0.106867797672749,-0.050853222608566,0.092626087367535,-0.032077983021736,0.053608577698469,-0.030118314549327,0.130474463105202,0.044811472296715,-0.113826237618923,0.183589428663254,-0.125530138611794,-0.155795514583588,-0.098995737731457,0.041766598820686,0.010644089430571) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.003083444666117,0.363157421350479,-0.046342570334673,-0.563513457775116) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 1_3

vec4 hook()
{
vec4 res = vec4(0.163218498229980,-0.001899574766867,0.017275013029575,0.078521221876144);
res += mat4(0.001965694129467,-0.045875206589699,0.008994701318443,-0.057882480323315,-0.102674841880798,0.331896990537643,0.204504653811455,-0.015275289304554,0.023774283006787,-0.158465698361397,0.136456429958344,0.134058386087418,0.047590941190720,0.154236346483231,0.099673122167587,0.135820776224136) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.038460478186607,0.011506177484989,0.058772888034582,0.104450285434723,-0.228466987609863,-0.238976567983627,-0.089933447539806,0.072764687240124,-0.030012736096978,0.004563958849758,-0.136905461549759,-0.214905738830566,-0.022636529058218,-0.043975427746773,0.057132598012686,0.039843384176493) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.091074980795383,0.060430448502302,-0.060948822647333,0.033134471625090,0.148304104804993,-0.107306629419327,-0.073101110756397,0.127840861678123,0.145591229200363,0.037459474056959,0.053516805171967,-0.004102880600840,0.056205622851849,0.048001658171415,-0.042523909360170,0.000050919887144) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.119214855134487,-0.138495683670044,0.019247505813837,-0.081387668848038,-0.046375140547752,-0.086406730115414,0.069775566458702,0.085962496697903,-0.059339292347431,0.292586296796799,0.333118885755539,0.226054638624191,-0.139154046773911,-0.450479477643967,-0.304419040679932,-0.214604020118713) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.073169104754925,-0.035927895456553,0.043204456567764,-0.029672162607312,0.103653497993946,0.102136999368668,0.290808439254761,0.109107717871666,-0.195656672120094,0.036762699484825,-0.076386794447899,-0.084316097199917,0.075240731239319,0.186252132058144,0.222859710454941,0.055127777159214) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.064597673714161,0.052814956754446,-0.043878797441721,-0.007263990119100,0.165911242365837,0.126961052417755,-0.253051787614822,-0.101767733693123,-0.079763352870941,-0.015903715044260,-0.117124252021313,-0.071424700319767,0.008027968928218,0.123853668570518,-0.061932582408190,0.028716802597046) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.128992617130280,0.140078783035278,0.032579179853201,-0.051346041262150,0.004633330274373,0.031321465969086,0.009900720790029,-0.027207661420107,-0.005470962263644,-0.091577567160130,0.054864652454853,0.032606676220894,0.052135467529297,0.001429922995158,-0.042788673192263,-0.041806928813457) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.010780582204461,0.054262716323137,0.152173221111298,0.025331307202578,0.026952672749758,-0.160049855709076,-0.081988424062729,0.028536764904857,0.124291427433491,-0.204672321677208,-0.098001919686794,0.147231340408325,-0.071815691888332,0.146109715104103,-0.061639700084925,-0.125927969813347) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.117909356951714,-0.107243962585926,-0.056510522961617,0.126593455672264,0.158235698938370,-0.067748673260212,0.029064293950796,-0.115562811493874,0.193131998181343,0.023732023313642,0.049094464629889,0.068044416606426,0.010646390728652,-0.121297396719456,0.119496956467628,0.063218742609024) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.059959199279547,0.040656451135874,-0.162178888916969,-0.006556011270732,-0.098652899265289,0.017547747120261,0.036943223327398,-0.004471933003515,0.045344118028879,0.128596335649490,-0.053957149386406,-0.061802428215742,-0.039009507745504,-0.219234898686409,-0.056257955729961,0.038714550435543) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.003539877943695,-0.045947670936584,-0.003950891550630,-0.137439116835594,-0.049646709114313,0.393088728189468,-0.023728096857667,0.014733335003257,-0.093106091022491,-0.268097281455994,-0.108139485120773,-0.073289737105370,-0.084655888378620,0.184610709547997,-0.000302849977743,-0.184823229908943) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.141256928443909,0.022458909079432,0.081445053219795,0.052622918039560,0.111791960895061,-0.128837332129478,-0.037379764020443,0.106277391314507,-0.138115718960762,0.136781498789787,0.115016259253025,0.082080557942390,-0.067342340946198,-0.065080523490906,0.027175283059478,0.109306469559669) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.016399867832661,-0.125227302312851,0.013530802913010,0.236014947295189,-0.070733845233917,0.026445629075170,0.305038779973984,0.071704708039761,-0.003852203255519,-0.085384406149387,-0.491731852293015,-0.126091286540031,-0.135171607136726,0.162148565053940,0.125247478485107,0.280537843704224) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.044228233397007,-0.245352208614349,-0.157449677586555,-0.177166789770126,-0.063049778342247,-0.199848398566246,-0.228742480278015,-0.018479144200683,0.290643215179443,0.084440127015114,0.524153769016266,0.004766708239913,0.018303485587239,-0.151369646191597,-0.035910923033953,-0.046491503715515) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.007487564813346,0.193509981036186,0.091500237584114,0.001618301845156,0.046233806759119,-0.159787505865097,-0.037533096969128,-0.238376602530479,-0.207008451223373,0.176853269338608,0.017893157899380,0.095524631440639,-0.296239048242569,-0.164110168814659,-0.079356849193573,-0.087177298963070) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.056182511150837,-0.079388648271561,0.068203508853912,0.055775512009859,0.007292251102626,-0.090573392808437,0.041811671108007,0.112282760441303,-0.084024466574192,0.037324212491512,-0.193321168422699,-0.187789976596832,0.182176336646080,-0.063640832901001,-0.073094151914120,0.082466006278992) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.036184243857861,0.107677675783634,-0.059923488646746,-0.011871091090143,-0.015548283234239,-0.053039029240608,-0.049472030252218,0.066946342587471,-0.080169148743153,0.011758745647967,0.209160223603249,0.166660219430923,0.034163039177656,-0.016766710206866,0.017929242923856,0.077870100736618) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.045419320464134,0.097553707659245,-0.006499169860035,0.044916283339262,-0.006563979201019,0.047381721436977,-0.041146043688059,-0.125589743256569,0.178521022200584,-0.223523020744324,-0.015591948293149,0.207820147275925,-0.050813149660826,0.234386458992958,0.019512709230185,-0.226261168718338) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.140679791569710,-0.235140398144722,-0.043130557984114,0.011913661845028,0.113593272864819,-0.026731103658676,0.013773919083178,0.075031191110611,0.178038462996483,0.321990072727203,0.028030635789037,0.052114866673946,0.155009031295776,-0.234670683741570,-0.082391947507858,-0.109456367790699) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.107534095644951,0.179465174674988,0.112417824566364,-0.083352021872997,0.234595715999603,-0.270638585090637,-0.164478391408920,0.040256816893816,0.104469992220402,-0.453666418790817,-0.044824823737144,0.079665705561638,0.082085952162743,-0.033526565879583,-0.063246920704842,-0.059236969798803) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.097703114151955,0.259729743003845,0.017032774165273,0.008243935182691,-0.073328331112862,-0.081792026758194,-0.013696713373065,-0.033537067472935,0.000255227903835,0.020371479913592,-0.020595112815499,-0.013246552087367,0.167584598064423,0.034654617309570,0.058131400495768,0.183607205748558) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.051506940275431,-0.004669792018831,0.092151835560799,0.096984855830669,0.060699146240950,-0.146668836474419,0.013904438354075,-0.056772086769342,-0.003653537249193,0.002658646553755,-0.017865722998977,0.156867295503616,-0.078525319695473,-0.176993310451508,0.163884237408638,0.031955402344465) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.024450829252601,0.234828561544418,0.036328397691250,-0.262570708990097,0.209221005439758,0.242739036679268,0.349099218845367,0.040924333035946,-0.101427160203457,-0.305187910795212,0.123345769941807,-0.008182314224541,0.041272748261690,-0.143193691968918,0.018336899578571,-0.098449058830738) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.091808982193470,-0.085428647696972,-0.008418123237789,0.109982013702393,-0.230992391705513,0.266196161508560,-0.165889665484428,-0.006573261693120,-0.268784075975418,0.194797709584236,-0.076050467789173,-0.105602309107780,0.007396005094051,0.025787856429815,-0.044938553124666,-0.034511018544436) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.094618506729603,-0.038684532046318,0.030658129602671,-0.024841129779816,-0.088592357933521,-0.141277000308037,0.181253522634506,0.085813656449318,-0.070924952626228,0.089675277471542,-0.111630976200104,-0.041892178356647,0.109977647662163,-0.095182478427887,0.113877594470978,0.124503642320633) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.038467504084110,0.051411606371403,-0.075617931783199,0.085240542888641,-0.228538364171982,0.128886550664902,0.050482578575611,0.015046702697873,0.095625534653664,-0.045739050954580,0.111242577433586,-0.080324500799179,-0.006888343021274,0.015881052240729,0.130638018250465,-0.066065259277821) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.037579637020826,-0.000020702636903,0.030331127345562,-0.094971477985382,-0.068624295294285,-0.095216192305088,-0.106804184615612,0.056815683841705,-0.035990860313177,-0.057808443903923,-0.007171690464020,0.179688125848770,0.176062777638435,0.101555757224560,-0.018940148875117,-0.033458944410086) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.012574567459524,0.033376343548298,-0.014648369513452,-0.034792028367519,0.216261252760887,-0.133895948529243,-0.002090467838570,-0.020475832745433,-0.034649793058634,0.037192627787590,-0.021362258121371,-0.016830790787935,0.147822335362434,-0.155257776379585,-0.119415394961834,0.001364136580378) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.129975542426109,0.303145527839661,0.176093161106110,0.002464774530381,-0.004459861665964,-0.013019817881286,0.045545261353254,0.014737809076905,0.039998088032007,-0.063503235578537,0.017025560140610,0.028063405305147,0.186416164040565,-0.072712615132332,-0.064014218747616,0.011906010098755) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.102390073239803,-0.141350820660591,-0.004995797760785,0.029117064550519,0.073272690176964,-0.016351679340005,-0.074915409088135,-0.002859552856535,0.051922824233770,0.023795658722520,0.023997278884053,-0.042154006659985,0.080708868801594,-0.033459413796663,-0.029153121635318,-0.024992110207677) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.042114712297916,-0.421087414026260,-0.144444391131401,0.007152297999710,-0.024518379941583,0.084709510207176,0.068713292479515,0.005039543379098,-0.002033227123320,0.029177142307162,-0.192424371838570,-0.036480717360973,0.192121118307114,-0.015137852169573,0.093418911099434,0.194572925567627) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.145259007811546,0.106542222201824,-0.141459211707115,-0.087419711053371,-0.077712014317513,0.093646198511124,0.154831126332283,0.033819485455751,0.243994027376175,0.012823730707169,0.049758139997721,0.065601311624050,0.074060484766960,0.284305095672607,0.142896860837936,0.070929713547230) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.052759405225515,-0.096972718834877,0.026523079723120,0.056665685027838,-0.049202814698219,-0.059312168508768,-0.167228385806084,-0.024462856352329,0.001772781135514,-0.068885736167431,0.051883321255445,-0.004033094272017,0.200129091739655,0.061216596513987,0.018308082595468,-0.236182615160942) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.119635917246342,0.101877257227898,-0.050810933113098,0.103194586932659,0.104122318327427,-0.013452719897032,0.007856836542487,0.029765577986836,-0.074766583740711,-0.075522623956203,-0.090509824454784,0.037144709378481,-0.005897903349251,0.017296424135566,0.035678178071976,0.347957402467728) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.264395564794540,0.024175975471735,-0.127919390797615,-0.161708042025566,0.017686856910586,-0.022170353680849,-0.115998856723309,-0.094470657408237,0.038445834070444,-0.006912588141859,0.023295715451241,-0.222361236810684,-0.129519909620285,-0.023130722343922,-0.122775711119175,-0.211176708340645) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.010767629370093,-0.044416557997465,-0.015722375363111,-0.074038028717041,-0.006569620687515,0.051438324153423,0.107590749859810,0.021984348073602,-0.056207600980997,-0.041947279125452,0.159835606813431,-0.081023409962654,-0.212676420807838,-0.083188816905022,-0.109802752733231,-0.191979169845581) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.038398154079914,-0.102713659405708,0.147483199834824,-0.063732601702213,-0.006718834862113,0.109051644802094,0.022948855534196,-0.044361602514982,-0.034697446972132,0.141003176569939,0.096036992967129,0.030819930136204,-0.068693794310093,0.050365451723337,-0.407417267560959,-0.001838056952693) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.011156897991896,0.143367171287537,-0.086883105337620,-0.204669967293739,-0.042674165219069,-0.166646972298622,0.112592995166779,-0.066825322806835,0.010599325411022,0.184315040707588,-0.028114071115851,0.054428245872259,0.148721143603325,-0.019164871424437,0.151969954371452,0.060255926102400) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.024758951738477,0.130565822124481,0.077926099300385,0.101944141089916,0.050802148878574,-0.133689671754837,-0.058329332619905,-0.142460361123085,0.027761152014136,-0.103242374956608,0.010404290631413,-0.025879852473736,0.158794298768044,-0.031411662697792,0.008584841154516,-0.030099907889962) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.096160925924778,0.071284674108028,0.031940281391144,-0.017444636672735,0.023140039294958,-0.028493123129010,-0.259674310684204,0.252794057130814,0.046251665800810,0.091794066131115,0.053810846060514,-0.026448259130120,0.097406134009361,0.042220514267683,-0.009938725270331,0.084829688072205) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.092302970588207,-0.026908177882433,0.004450099077076,-0.001687251264229,-0.219530537724495,0.250378131866455,0.701082408428192,-0.007512759417295,-0.079615801572800,-0.082515403628349,-0.142476037144661,-0.043118003755808,0.026628639549017,0.022479314357042,0.013799367472529,-0.114633291959763) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.096629694104195,-0.122788690030575,-0.048672523349524,-0.059739872813225,0.002775976201519,0.355975389480591,0.103985935449600,-0.088395312428474,0.159541919827461,-0.247090652585030,0.058434039354324,-0.003480032319203,0.069525353610516,-0.088486574590206,0.048290897160769,0.007018369622529) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.090665616095066,0.018722513690591,-0.008135043084621,-0.054782327264547,-0.102431662380695,-0.098319262266159,0.017392205074430,-0.021830275654793,0.064419157803059,-0.250756144523621,-0.056750874966383,0.026813136413693,0.055796101689339,-0.050404936075211,-0.024527410045266,0.161969453096390) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.088000878691673,-0.159609094262123,-0.057683676481247,-0.008494980633259,-0.250527530908585,-0.013135318644345,0.060149252414703,-0.048435509204865,0.209338888525963,-0.044936377555132,0.037466030567884,-0.035992875695229,0.032111003994942,0.002919062506407,-0.002060657599941,-0.011762567795813) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.093692950904369,0.099519044160843,0.052429217845201,0.066103123128414,0.020001636818051,-0.262559592723846,-0.003827487817034,-0.184978947043419,-0.054679408669472,0.206216260790825,-0.030711861327291,-0.030995229259133,0.026952637359500,0.046863052994013,-0.012173483148217,0.076326705515385) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.135261401534081,-0.336816012859344,-0.051681771874428,-0.096505187451839,0.119404241442680,-0.025051493197680,-0.043048504740000,-0.040724307298660,0.107294760644436,-0.120763011276722,-0.050471048802137,-0.028121229261160,0.112276189029217,-0.102804146707058,-0.201453059911728,-0.065547347068787) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.057443074882030,0.312611192464828,-0.034383371472359,-0.027649477124214,0.051164146512747,0.157646402716637,0.025504430755973,-0.064630255103111,0.035037674009800,0.117689102888107,0.032671790570021,-0.027565095573664,0.158395528793335,-0.210267871618271,0.184471577405930,0.036981068551540) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.218038722872734,-0.075516507029533,0.054013572633266,0.004846966825426,-0.020525705069304,-0.195703998208046,0.025416828691959,-0.030370978638530,-0.061874344944954,0.072943270206451,0.005037845112383,0.074011109769344,0.011682315729558,-0.079240925610065,0.065642461180687,0.107804045081139) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.048512127250433,0.103381402790546,0.236466988921165,0.158411517739296,-0.084644049406052,0.094727881252766,-0.012018061242998,0.070703901350498,-0.053012751042843,0.348145484924316,0.275672048330307,0.207212939858437,0.197147920727730,-0.095810934901237,-0.322685271501541,-0.204444184899330) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.176386117935181,-0.038089126348495,-0.233432963490486,-0.137540802359581,-0.147525995969772,-0.166747763752937,-0.362716078758240,0.003797930898145,0.042137645184994,-0.055682875216007,-0.100737370550632,-0.142838805913925,0.135164842009544,0.119342513382435,0.273753076791763,0.105773590505123) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.087429344654083,-0.149174079298973,0.072354428470135,-0.023611333221197,-0.160964205861092,0.071136318147182,0.356210529804230,-0.221461638808250,0.114699661731720,-0.078843005001545,-0.200576469302177,-0.113777190446854,0.113764733076096,0.150519549846649,0.148077979683876,0.108605340123177) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.039440907537937,-0.189340800046921,0.026557123288512,0.034022942185402,0.067591376602650,0.045958776026964,-0.034967288374901,0.105812594294548,0.003518283134326,0.155660867691040,-0.166436895728111,0.079817533493042,0.164454221725464,-0.033571965992451,-0.311852663755417,-0.077843658626080) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.001833135960624,0.010997010394931,-0.003430865472183,0.008020859211683,-0.203188478946686,0.022202039137483,0.134164065122604,-0.072354741394520,0.124258451163769,0.044598475098610,0.094897106289864,-0.146985307335854,0.138378232717514,0.171237662434578,0.205806642770767,0.090109974145889) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.110481768846512,0.275235116481781,-0.109645240008831,0.002582398941740,-0.081805609166622,-0.009183872491121,-0.003052616724744,-0.286353468894958,-0.189711585640907,-0.163403451442719,-0.002198912901804,0.024883000180125,0.094313964247704,-0.067275002598763,0.115188360214233,0.153157785534859) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.363515287637711,-0.412801891565323,-0.568819224834442,-0.318431198596954) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 1_4

vec4 hook()
{
vec4 res = vec4(0.096062056720257,-1.001107096672058,0.091545894742012,0.051084343343973);
res += mat4(-0.007215765770525,0.146634668111801,-0.016138236969709,-0.182466298341751,-0.091692298650742,0.016113581135869,0.053236402571201,-0.044450789690018,0.186070904135704,0.376172274351120,0.141485720872879,0.149284288287163,-0.172199368476868,-0.299304366111755,-0.000335973920301,-0.112670391798019) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.029685618355870,-0.006492759566754,-0.021705375984311,-0.094170600175858,0.075521990656853,-0.053936466574669,-0.308314025402069,-0.028257932513952,-0.051563270390034,0.285342603921890,-0.096424996852875,0.076912589371204,0.103540256619453,0.260314673185349,-0.058191634714603,-0.217599019408226) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.025104127824306,0.032807160168886,0.053145986050367,0.155826628208160,0.142166778445244,-0.049179472029209,0.553134083747864,0.111590132117271,0.063336931169033,0.159441739320755,0.097038336098194,0.113716527819633,0.053880885243416,-0.084204621613026,-0.165703430771828,0.169406101107597) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.012677369639277,-0.009212289936841,0.002739502815530,0.054652169346809,0.004698286764324,0.028291514143348,-0.006007676478475,0.068299740552902,0.302584797143936,0.115114375948906,0.205189481377602,0.214563503861427,-0.337793678045273,0.127864703536034,-0.135040551424026,0.039193388074636) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.027053346857429,-0.037942439317703,0.012665106914937,0.093348599970341,-0.026601366698742,-0.036434270441532,-0.230401128530502,-0.044762808829546,-0.322086811065674,0.156381025910378,-0.267056852579117,-0.145978674292564,0.368779450654984,-0.113664284348488,0.235607340931892,-0.089306205511093) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.005854776594788,-0.045993890613317,0.117249429225922,0.160633414983749,-0.071334630250931,0.042579539120197,-0.192236274480820,-0.039705540984869,-0.035779312252998,0.157151997089386,-0.209193497896194,-0.041320264339447,-0.121944099664688,0.078741207718849,-0.059308871626854,-0.056808162480593) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.061244357377291,0.015044013969600,-0.015854220837355,0.194592416286469,0.007228980772197,-0.036139417439699,-0.168138116598129,-0.005863378290087,0.068425185978413,0.092518955469131,0.106694780290127,0.045161314308643,0.113513380289078,0.047096960246563,0.085619620978832,0.107655860483646) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.019866947084665,-0.024482205510139,-0.082917451858521,0.087437815964222,-0.067420721054077,-0.006156248506159,-0.014055658131838,-0.016594275832176,-0.065614961087704,0.043134555220604,0.038429748266935,-0.202339172363281,-0.083042912185192,-0.069872237741947,-0.062328632920980,-0.016457241028547) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.022222531959414,0.079645954072475,-0.013117312453687,-0.207087934017181,-0.025826930999756,-0.046721886843443,-0.094269581139088,0.011081987060606,0.066193625330925,0.050702784210443,0.012947276234627,-0.066769406199455,0.087475471198559,0.079659774899483,0.053144864737988,0.090408541262150) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.019630344584584,-0.003016253467649,0.062821008265018,-0.233412474393845,0.148438975214958,0.299866229295731,0.173807933926582,0.007552715018392,-0.134566172957420,-0.349393278360367,-0.010092948563397,-0.487498342990875,-0.009753703139722,0.851594924926758,-0.073622189462185,0.097728535532951) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.048555739223957,0.029143661260605,0.026872202754021,0.134563043713570,-0.110673218965530,-0.126441150903702,0.116773016750813,-0.105308257043362,-0.093459248542786,0.066995523869991,-0.187069147825241,-0.056608021259308,-0.030323320999742,0.334590315818787,0.122777111828327,-0.083678483963013) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.154419630765915,0.018106499686837,-0.097556971013546,-0.134159594774246,-0.150348648428917,-0.092668570578098,-0.026653449982405,-0.063219048082829,0.005933933891356,0.029846465215087,0.198981896042824,0.146422356367111,-0.078743182122707,0.038937337696552,-0.166760250926018,-0.096681490540504) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.032230947166681,0.217365115880966,-0.037001579999924,-0.207671239972115,0.184630513191223,-0.218484938144684,0.112297959625721,0.154521360993385,-0.247528344392776,0.011080658063293,-0.164407014846802,-0.026412377133965,0.100394681096077,0.048794094473124,-0.051500204950571,0.058246880769730) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.024873003363609,0.062427297234535,-0.065811946988106,-0.056908756494522,-0.174020633101463,0.024366205558181,-0.251631259918213,0.200956001877785,0.386692911386490,0.180329263210297,0.279891282320023,0.199937999248505,-0.160119712352753,0.128165513277054,0.072152338922024,-0.191843926906586) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.008510898798704,-0.029911564663053,-0.058602020144463,0.121446371078491,0.054827999323606,0.081402897834778,-0.098153628408909,-0.136320039629936,0.010622146539390,-0.083656467497349,0.156257942318916,0.235192179679871,0.065186038613319,0.010838295333087,-0.266031384468079,0.043137110769749) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.062008015811443,0.002876698039472,0.022636810317636,0.000316077581374,-0.008721128106117,0.133237004280090,0.000519492954481,-0.082575015723705,-0.005336041096598,0.033700022846460,-0.048913929611444,0.024603383615613,0.016116481274366,-0.155820667743683,-0.055708549916744,-0.232133165001869) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.005049122031778,-0.028007071465254,0.007191117852926,-0.062512211501598,-0.037062078714371,-0.082071714103222,0.078310593962669,0.178678974509239,0.189703255891800,-0.006841402966529,0.005596150644124,0.124328993260860,0.101148471236229,-0.074032098054886,0.051764287054539,0.130345880985260) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.004589769523591,0.013295489363372,-0.211935013532639,0.126724436879158,-0.002493410371244,-0.064809858798981,-0.007329236716032,-0.112924590706825,-0.044625151902437,0.090153403580189,-0.151497617363930,-0.139031559228897,0.087373957037926,0.089911609888077,-0.173338264226913,0.163712903857231) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.002071918221191,-0.087146177887917,-0.029568582773209,0.092014871537685,-0.044140148907900,-0.302689611911774,-0.032194525003433,-0.299267053604126,-0.037363406270742,-0.281098455190659,-0.142484381794930,-0.176589474081993,0.010526333004236,0.008373266085982,0.047489713877439,0.058347411453724) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.083219356834888,0.005622258409858,0.054399017244577,0.395070463418961,0.026430267840624,0.084974400699139,0.027460789307952,0.185640364885330,0.019265599548817,-0.041690446436405,-0.041267566382885,-0.435454517602921,0.022963158786297,0.076520293951035,0.092746317386627,-0.065914690494537) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.084281228482723,0.018091458827257,0.193388745188713,0.018656596541405,0.008205084130168,-0.145112305879593,0.010569852776825,0.295676589012146,0.104807570576668,-0.067256011068821,-0.110055766999722,-0.064776904881001,-0.017543915659189,-0.010157985612750,0.090801805257797,-0.063530653715134) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.056704629212618,0.101198598742485,0.104386307299137,0.300766438245773,0.081790827214718,0.126626551151276,0.156333550810814,0.183642596006393,0.098024562001228,0.032931610941887,0.016970068216324,-0.086139634251595,0.033044233918190,0.061902865767479,-0.157055199146271,-0.279477536678314) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.118711970746517,0.001182283507660,-0.056851811707020,0.133556172251701,0.213807091116905,0.222530141472816,0.304842114448547,0.031033584848046,-0.176453173160553,0.031075438484550,0.084239706397057,-0.095126032829285,0.118133820593357,0.092412114143372,-0.218444958329201,-0.049346622079611) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.063049383461475,-0.011858863756061,-0.093930102884769,-0.499852746725082,-0.195086449384689,-0.221445113420486,0.069267511367798,-0.207819059491158,-0.084242030978203,-0.057037055492401,-0.042209513485432,0.214832589030266,0.039139784872532,0.053067862987518,0.015318840742111,0.012473678216338) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.061079375445843,-0.008913627825677,0.004659605678171,0.090506106615067,0.117054827511311,0.083358161151409,0.007048011757433,0.208446130156517,0.141319185495377,-0.089598581194878,-0.065547458827496,-0.046282295137644,-0.035703238099813,0.123729184269905,0.075612917542458,-0.044276975095272) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.024984056130052,0.008148428052664,0.098521493375301,-0.066833160817623,0.015828205272555,-0.120360806584358,-0.126306578516960,-0.177452668547630,-0.038307704031467,-0.038168676197529,0.008174609392881,0.077315673232079,-0.005123239476234,0.002045169007033,0.007787469774485,-0.118907615542412) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.067823819816113,0.004395449068397,0.115648500621319,0.027972452342510,-0.091826267540455,-0.010129236616194,-0.170337453484535,-0.223263025283813,0.032010450959206,-0.070304058492184,-0.031794976443052,0.145231425762177,0.014987005852163,0.043942451477051,0.053531169891357,-0.061987519264221) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.069760195910931,-0.054448653012514,-0.038999233394861,-0.109110772609711,0.008176681585610,-0.067307211458683,-0.135814160108566,0.175958946347237,-0.071120694279671,-0.219390258193016,-0.078555241227150,-0.091164343059063,0.039128798991442,-0.027708100154996,-0.034747783094645,0.066040784120560) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.025304432958364,-0.318803608417511,0.114713840186596,0.108766585588455,-0.075371928513050,-0.163782075047493,-0.048961050808430,-0.057429488748312,0.000338499929057,0.054141268134117,-0.024231618270278,-0.164199620485306,-0.054860942065716,0.133137896656990,0.094430848956108,0.137125268578529) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.109189003705978,0.031977783888578,-0.168359175324440,-0.122567743062973,0.006158405449241,0.024267429485917,0.004580271895975,0.201957076787949,0.029486034065485,-0.116750217974186,-0.059364181011915,-0.019157040864229,-0.107447601854801,0.006150211207569,0.034941233694553,-0.065720938146114) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.030727386474609,0.130288928747177,0.002889375900850,0.139328628778458,-0.013675643131137,0.004962365608662,0.092149972915649,0.043441276997328,-0.093513622879982,-0.023322146385908,0.050505034625530,0.045404337346554,-0.155223771929741,0.173024550080299,-0.055544394999743,0.183108955621719) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.020514871925116,0.076169915497303,0.100958891212940,0.094326384365559,0.023529360070825,0.083616413176060,-0.073748394846916,-0.075947314500809,-0.106588870286942,0.069503009319305,0.247689738869667,-0.005828494671732,-0.136813074350357,-0.004076777026057,-0.068675138056278,-0.129368051886559) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.080876111984253,0.008543976582587,0.180499911308289,0.041601624339819,0.008485627360642,-0.063667163252831,0.194140583276749,-0.004527078475803,0.070181272923946,0.067806817591190,0.397832989692688,-0.150965303182602,0.015317853540182,0.116215750575066,0.094087257981300,0.006196361500770) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.062960088253021,0.005439744330943,-0.019534537568688,-0.152644574642181,0.009715645574033,0.014224286191165,0.028211338445544,-0.005312220659107,0.017732065171003,-0.020806640386581,-0.033492386341095,0.028678929433227,-0.128161579370499,0.005301897414029,0.019756527617574,-0.088152736425400) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.098220497369766,-0.034481581300497,0.009601540863514,0.067009307444096,0.009748228825629,-0.035206761211157,-0.021026534959674,0.038099721074104,0.107756927609444,0.060913104563951,0.086822241544724,-0.060397055000067,0.027042072266340,0.173728376626968,-0.174598962068558,0.052995730191469) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.025053827092052,-0.019645672291517,0.016502324491739,-0.085955835878849,-0.005851078778505,0.009545630775392,0.127450883388519,0.025167813524604,0.026209242641926,0.013483083806932,0.621607780456543,0.033344928175211,-0.055059093981981,0.171541705727577,-0.062962062656879,0.040733363479376) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.095791451632977,-0.105842359364033,0.157310083508492,-0.086596921086311,-0.060600157827139,-0.527162075042725,0.040415063500404,0.150975063443184,-0.010327874682844,0.152408301830292,0.124276310205460,0.038652446120977,0.105961926281452,0.107941217720509,0.014144096523523,-0.077863112092018) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.070327378809452,-0.063218109309673,-0.280584037303925,-0.090708009898663,0.043140400201082,-0.025917204096913,-0.081076458096504,0.133109435439110,-0.005141683854163,-0.121006064116955,0.007200299296528,-0.063991405069828,0.081008657813072,0.113716252148151,-0.059075832366943,0.042806785553694) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.013260571286082,-0.075634166598320,-0.057918228209019,0.103961415588856,0.106384135782719,0.135995998978615,-0.138929724693298,0.000530180928763,0.122546784579754,0.082545667886734,-0.116648033261299,0.025207702070475,0.003384829731658,-0.050294417887926,0.027920361608267,0.030646836385131) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.010651186108589,0.051660463213921,0.080390058457851,0.021258777007461,-0.157584086060524,-0.059909064322710,-0.010321925394237,0.008650952950120,-0.018028847873211,-0.147825643420219,0.013470655307174,0.027762500569224,0.084926493465900,0.010595111176372,0.151553198695183,-0.147705778479576) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.056282702833414,-0.003961144946516,0.167298838496208,-0.078574731945992,0.291682273149490,0.073055401444435,0.212068215012550,0.095629468560219,0.000482459086925,0.205205500125885,-0.138267755508423,-0.166865885257721,-0.001226058928296,0.067308083176613,-0.018538184463978,-0.094700947403908) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.004983908031136,-0.040639080107212,-0.122280135750771,0.105748072266579,0.095247894525528,0.085124887526035,-0.079789087176323,-0.049468774348497,-0.036452017724514,0.024008346721530,0.024941179901361,0.002417145296931,-0.057888913899660,-0.028181767091155,0.003522823331878,-0.040228433907032) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.049949340522289,-0.068907499313354,0.027063319459558,0.025913799181581,-0.115209259092808,-0.019255159422755,-0.002707394072786,-0.102795995771885,-0.019239725545049,-0.033373191952705,0.003587093669921,-0.025962581858039,0.042304161936045,0.074582003057003,0.014764789491892,-0.125098437070847) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.064679771661758,0.015070256777108,-0.208677425980568,0.097108848392963,-0.065834276378155,-0.033285852521658,0.040595028549433,0.103813216090202,-0.021199475973845,-0.099964097142220,0.098060190677643,0.033201113343239,-0.045585103332996,-0.024572491645813,0.009832306765020,0.051060158759356) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.008133445866406,-0.027435084804893,0.039011105895042,0.042158257216215,0.038717947900295,-0.036876991391182,0.066681645810604,-0.233395919203758,0.033439513295889,0.024811370298266,-0.090881422162056,0.177962720394135,-0.010733068920672,0.017052954062819,-0.029053237289190,0.049207188189030) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.140241861343384,0.406698256731033,-0.031166026368737,0.090205200016499,0.014644463546574,0.627870500087738,0.123131804168224,-0.049707733094692,0.022051444277167,-0.075318790972233,0.002293595112860,0.290357947349548,-0.008486879989505,-0.211369931697845,0.072172224521637,-0.031378477811813) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.110924907028675,-0.211207464337349,-0.020777653902769,-0.115112289786339,-0.053958408534527,0.158782854676247,0.072692096233368,0.021830989047885,0.105946488678455,0.029091453179717,0.099120490252972,0.147046312689781,0.024677278473973,-0.151373788714409,0.087383657693863,-0.007412184961140) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.092779651284218,0.126792728900909,0.029278164729476,-0.188740387558937,-0.058453034609556,-0.276193588972092,-0.020284414291382,-0.096312202513218,-0.039526596665382,0.072287529706955,-0.045374538749456,-0.084960028529167,-0.031120400875807,0.025295779109001,0.161347135901451,0.164248377084732) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.203296363353729,-0.145179077982903,0.199088484048843,0.093728303909302,0.034443754702806,0.192737922072411,0.058086387813091,-0.005296275950968,0.122337795794010,0.002431691391394,-0.089432626962662,0.120618246495724,-0.059677939862013,-0.258283406496048,0.190983071923256,0.006227260921150) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.309452205896378,-0.000685259874444,-0.380483359098434,-0.128884255886078,-0.111635856330395,0.106718495488167,-0.198664262890816,-0.271491736173630,0.048424582928419,0.002525361953303,-0.401540249586105,-0.035924870520830,0.133914038538933,-0.074583761394024,0.490508764982224,0.001765136374161) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.158580839633942,0.015972176566720,0.039427429437637,0.071012377738953,0.051852121949196,-0.169129326939583,0.022670308127999,-0.043584123253822,0.101428769528866,0.001522617414594,-0.204496547579765,0.028989914804697,-0.000625349173788,-0.099900312721729,0.212993085384369,0.100498348474503) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.038289569318295,0.155388236045837,0.034811984747648,-0.138883978128433,0.064047574996948,-0.061827950179577,0.097843118011951,0.042724553495646,0.080430135130882,-0.033413086086512,-0.163924619555473,-0.029808582738042,0.009204498492181,0.002026966074482,0.117865368723869,0.028813585639000) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.026755675673485,-0.154844373464584,0.159786641597748,0.093434952199459,0.118981279432774,-0.052589308470488,0.062565967440605,0.239457592368126,0.096599526703358,-0.200989931821823,0.172560602426529,0.017281845211983,0.105391703546047,-0.033003900200129,0.363806992769241,-0.059314403682947) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.035538397729397,-0.016231706365943,-0.042876537889242,0.209322780370712,-0.063851445913315,-0.155114457011223,-0.030241936445236,0.205939382314682,-0.046600643545389,0.084493733942509,0.424833327531815,-0.018288137391210,0.076444528996944,0.026988347992301,0.019243126735091,-0.031057497486472) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.391090244054794,0.009260303340852,0.022384118288755,-0.555119276046753) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 1_5

vec4 hook()
{
vec4 res = vec4(-0.088361799716949,0.002572097349912,-0.019110746681690,0.148216962814331);
res += mat4(-0.026860343292356,0.035780120640993,-0.018316784873605,0.103179275989532,-0.118354424834251,-0.087551139295101,0.187577411532402,-0.163481220602989,0.029848590493202,-0.001198020414449,-0.061107978224754,-0.084000535309315,-0.041140221059322,-0.058233700692654,-0.098584510385990,-0.023887800052762) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.084715910255909,-0.054487995803356,-0.080361172556877,0.034114073961973,0.177889496088028,-0.086879663169384,0.051312852650881,-0.087241373956203,-0.004577697254717,-0.220881089568138,-0.069842323660851,-0.111944250762463,-0.036923281848431,0.115203879773617,0.082837879657745,0.119205914437771) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.031090307980776,0.095946028828621,-0.043675631284714,-0.097792126238346,-0.150848671793938,-0.025954084470868,-0.083010867238045,-0.049646753817797,-0.017066432163119,-0.147146224975586,0.021731268614531,0.013702479191124,-0.002464422723278,-0.036697715520859,0.023404505103827,-0.037049267441034) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.033345434814692,-0.044518575072289,-0.073642440140247,-0.028662728145719,0.014070260338485,0.032811399549246,0.068694561719894,0.009909912943840,-0.183355316519737,-0.113741517066956,-0.032071348279715,0.083012901246548,-0.020079663023353,0.103358067572117,0.029527842998505,-0.065837882459164) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.043645605444908,-0.000641626655124,0.064156033098698,-0.053794037550688,0.157523468136787,0.003984928596765,-0.102553486824036,0.179310172796249,0.227035775780678,0.268620580434799,0.085168227553368,0.351526170969009,-0.097797468304634,-0.067394480109215,-0.062915846705437,-0.013726377859712) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.002376481657848,0.018944712355733,-0.020793940871954,-0.070748768746853,-0.072554491460323,0.182373061776161,-0.001199105754495,-0.045243665575981,0.044366240501404,0.186541169881821,-0.052363038063049,0.000269988435321,0.022958731278777,-0.160754680633545,0.046379495412111,-0.056391190737486) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.072654776275158,-0.054260432720184,0.096318446099758,-0.098763406276703,-0.028117131441832,0.008703488856554,-0.050569906830788,-0.146010562777519,-0.192031890153885,0.059636436402798,0.166213676333427,-0.310793250799179,-0.015257840044796,-0.042331296950579,-0.086194485425949,0.039502192288637) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.047257315367460,0.025009371340275,-0.048992481082678,-0.014521330595016,0.092043869197369,0.004783512558788,0.108959056437016,-0.004080372862518,-0.031533192843199,-0.131816178560257,-0.236493930220604,0.188471347093582,0.007011247333139,0.030892794951797,0.183675393462181,-0.112228482961655) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.116024889051914,0.056696839630604,0.018949504941702,-0.055791981518269,-0.064935505390167,-0.071387618780136,-0.056818433105946,-0.092127196490765,-0.097694233059883,-0.068928465247154,-0.196481704711914,0.033142648637295,0.098052121698856,0.035191144794226,-0.158814817667007,0.053769715130329) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.035119034349918,0.133084073662758,0.048827577382326,-0.083985932171345,-0.063681989908218,-0.101713128387928,0.042131610214710,0.089819133281708,0.005491424351931,-0.081196345388889,0.028644476085901,0.083939902484417,-0.212313234806061,-0.048337794840336,0.021381422877312,-0.052116379141808) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.312932133674622,0.058580867946148,-0.149374440312386,0.099214196205139,0.009287004359066,-0.292269617319107,0.009621316567063,-0.278501212596893,0.011651270091534,0.541174352169037,0.050364453345537,0.182059690356255,0.001415363512933,-0.043018542230129,0.017314638942480,-0.058429908007383) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.018199454993010,-0.068832688033581,0.055605843663216,-0.075865514576435,0.000721399846952,0.115420676767826,0.180749371647835,0.147304058074951,-0.003312707645819,-0.087224908173084,-0.036173041909933,-0.078394636511803,-0.031554810702801,-0.117088146507740,-0.138125672936440,0.098607584834099) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.135952085256577,0.016364593058825,0.132437899708748,-0.052733145654202,-0.020056087523699,0.045822840183973,-0.035017967224121,0.091917105019093,0.026928149163723,0.035398211330175,0.049318034201860,-0.229761838912964,0.133811920881271,-0.094006463885307,-0.031485531479120,-0.182964235544205) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.128037691116333,-0.158953115344048,-0.094670914113522,0.111661612987518,0.123935684561729,0.304242938756943,-0.000272226607194,0.114671908318996,-0.270232141017914,-0.299551844596863,-0.002183497184888,0.048044431954622,0.326102048158646,0.451337367296219,0.248692169785500,-0.023279543966055) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.015238107182086,-0.139234691858292,-0.114518322050571,-0.007089670747519,-0.138755410909653,-0.116113170981407,-0.063336461782455,-0.027010988444090,0.185614407062531,-0.134490177035332,0.050382535904646,0.143920451402664,-0.054847151041031,-0.002423949074000,-0.038402192294598,-0.022130418568850) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.098705984652042,-0.033624984323978,-0.210086673498154,0.041175037622452,0.080091491341591,0.000519069086295,-0.087359614670277,-0.075466230511665,-0.046843707561493,-0.031316228210926,-0.013901753351092,0.015834501013160,-0.030823089182377,-0.080074824392796,0.016390621662140,-0.035618454217911) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.259444177150726,0.128572836518288,-0.039923589676619,0.178819850087166,-0.015244647860527,-0.096982225775719,-0.265613704919815,-0.042737133800983,0.038191687315702,-0.019861662760377,0.399850368499756,-0.095556572079659,-0.024542776867747,-0.098430231213570,-0.026776064187288,-0.008046813309193) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.037509817630053,-0.073732770979404,-0.008024140261114,0.007395437918603,-0.064694784581661,0.072004966437817,-0.016879418864846,0.034871682524681,0.131394267082214,0.045407284051180,-0.249091222882271,0.061856981366873,-0.014397959224880,0.032468203455210,-0.017040729522705,-0.154581725597382) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.135181650519371,-0.001782016945072,-0.043701257556677,0.183796331286430,0.010779843665659,0.098872110247612,-0.040201690047979,-0.022756863385439,-0.033034071326256,0.058985691517591,-0.039158079773188,-0.265643298625946,0.030918100848794,0.090181693434715,-0.051615342497826,0.110988326370716) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.007821515202522,-0.128246843814850,-0.003080256516114,-0.074964657425880,0.004311108496040,0.156341597437859,-0.007084805984050,0.075952209532261,0.173513263463974,0.533609747886658,-0.084829084575176,0.268559873104095,-0.003191642928869,-0.062425877898932,-0.081078313291073,-0.085983380675316) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.147660762071609,-0.176580503582954,-0.010911832563579,0.076365940272808,-0.005516979843378,-0.059343557804823,0.001165597001091,-0.075402364134789,0.070808716118336,0.093787841498852,0.072583019733429,-0.154645174741745,0.057762958109379,-0.102081477642059,-0.056269176304340,0.045775882899761) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.048622690141201,0.048490911722183,0.022409437224269,0.160613641142845,-0.255703777074814,-0.113767609000206,-0.049029339104891,-0.081539891660213,-0.118714183568954,-0.174231663346291,-0.059933256357908,-0.087003126740456,0.018356584012508,0.123061366379261,-0.165704622864723,0.225403189659119) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.057790406048298,-0.010251679457724,0.161495536565781,0.020132642239332,-0.122912310063839,-0.313311249017715,-0.039046213030815,0.327589511871338,-0.078704908490181,-0.065155111253262,0.010576047003269,0.235451728105545,-0.190015956759453,0.497992873191833,-0.032097503542900,-0.284050315618515) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.022589446976781,0.112063758075237,0.126631587743759,-0.021419946104288,0.068545468151569,-0.003029061481357,-0.147019296884537,0.002422373741865,0.008497510105371,-0.158956676721573,-0.082497917115688,-0.014859813265502,0.074259437620640,-0.047360599040985,-0.147192984819412,-0.124891214072704) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.032304804772139,0.032611742615700,-0.053962152451277,-0.042349386960268,0.009259277023375,-0.066576205193996,-0.059069722890854,0.004041722975671,-0.090011559426785,-0.005821783095598,0.043931402266026,-0.103057973086834,-0.097278669476509,-0.038559887558222,-0.162842750549316,-0.190372139215469) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.110115036368370,-0.055090721696615,-0.054844383150339,-0.054675534367561,0.105230420827866,0.093070514500141,0.185717046260834,0.039853606373072,-0.064184464514256,0.010168977081776,0.176904067397118,0.075548365712166,-0.148137688636780,-0.086528673768044,-0.047347571700811,0.015998950228095) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.070088177919388,0.029385244473815,-0.242647901177406,-0.013726431876421,0.102870434522629,-0.005748532712460,0.167394846677780,-0.008368485607207,0.081342071294785,-0.134044602513313,0.289347708225250,-0.034992881119251,0.079398214817047,-0.001002251286991,0.104147344827652,-0.090888544917107) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.034767277538776,-0.086477920413017,-0.087913416326046,-0.069166570901871,0.020685110241175,-0.000514129467774,-0.067227765917778,0.003729910822585,0.004819982685149,-0.031143167987466,-0.023439465090632,-0.110369540750980,0.063333928585052,-0.045770473778248,-0.137797012925148,0.023435082286596) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.069679506123066,0.149663776159286,0.200308248400688,-0.260930895805359,0.070318199694157,-0.047317713499069,-0.096138142049313,-0.030691735446453,-0.121236808598042,0.000835375336464,-0.123776383697987,-0.038036804646254,-0.040395785123110,-0.180216953158379,0.112616710364819,0.162855729460716) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.139490738511086,0.127027526497841,0.035713799297810,-0.066944815218449,-0.088763184845448,-0.017451956868172,-0.007599292322993,-0.069445535540581,0.056449934840202,-0.019962159916759,0.057462509721518,-0.003484121523798,0.173925012350082,-0.104883946478367,-0.119473062455654,0.183409646153450) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.110781408846378,-0.011281807906926,0.002165347104892,0.015270005911589,-0.164778411388397,0.037037372589111,0.186638325452805,0.143091395497322,-0.172991663217545,0.041027478873730,0.037004772573709,-0.017271947115660,0.063206404447556,-0.019206685945392,-0.115425616502762,0.093814864754677) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.047600761055946,-0.194543346762657,0.071541644632816,-0.311500370502472,-0.012232488952577,0.017392499372363,0.062378067523241,-0.027963234111667,0.058499023318291,0.185555770993233,-0.131734907627106,-0.252956151962280,-0.207816183567047,-0.085683025419712,0.100661225616932,0.104027450084686) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.091347791254520,-0.429216980934143,-0.051624167710543,0.147217914462090,-0.143294498324394,0.229840904474258,0.250261217355728,0.037075139582157,-0.047080125659704,0.327571630477905,0.090606734156609,0.054075017571449,0.099816016852856,0.059361163526773,0.317387282848358,0.119875654578209) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.095398254692554,-0.002286595758051,-0.075119316577911,-0.000759480579291,-0.079803086817265,-0.040886834263802,0.028044097125530,-0.029843194410205,-0.089211940765381,0.067734822630882,-0.011741196736693,-0.102200321853161,-0.002741849748418,-0.021142767742276,-0.013479423709214,-0.032691199332476) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.022295009344816,0.096752114593983,0.172866553068161,-0.205311357975006,0.015550628304482,-0.027321763336658,-0.074656441807747,-0.030690355226398,-0.034124124795198,-0.038239344954491,-0.375329077243805,-0.151343956589699,-0.191741451621056,-0.028426153585315,0.295866876840591,-0.212672933936119) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.004071662668139,-0.118051819503307,-0.019361576065421,-0.002741615753621,-0.027765026316047,-0.010394314303994,-0.059802412986755,-0.046383038163185,0.025744026526809,-0.145442590117455,-0.204429879784584,0.098593965172768,0.056714519858360,0.056697834283113,0.090262845158577,-0.194555640220642) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.023454859852791,0.187403932213783,0.032294310629368,-0.084559001028538,-0.016864631325006,0.073389902710915,-0.058528084307909,-0.017084145918489,0.001392466831021,-0.037865884602070,0.096009977161884,0.054514300078154,-0.262099385261536,-0.035959310829639,-0.117311783134937,-0.152593821287155) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.016406934708357,0.192614868283272,-0.127423405647278,-0.078820981085300,0.087011620402336,-0.142646223306656,-0.101264022290707,-0.033689968287945,0.091439440846443,0.048327289521694,0.128888815641403,-0.087756581604481,-0.044753473252058,-0.063465729355812,-0.089020751416683,0.009112340398133) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.091832950711250,-0.045610617846251,-0.031321968883276,0.039190012961626,0.167133361101151,0.022899448871613,0.010644837282598,-0.042922828346491,0.044190339744091,-0.006270139943808,-0.091384187340736,0.061792150139809,-0.012946233153343,0.081427007913589,-0.044790219515562,-0.047696840018034) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.078834675252438,-0.220632627606392,0.148534312844276,-0.006151097360998,0.056638140231371,0.087230652570724,-0.175780102610588,0.146234869956970,0.020395314320922,0.066411323845387,-0.154383376240730,0.151781663298607,-0.014551689848304,0.017547272145748,-0.221105456352234,-0.114484742283821) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.090800918638706,-0.132120639085770,0.001812485861592,0.010170995257795,-0.130619630217552,0.023998355492949,-0.120793178677559,0.115465022623539,-0.063874073326588,0.134151101112366,0.244774222373962,-0.177951976656914,-0.112026073038578,0.118229635059834,-0.093112677335739,-0.054756261408329) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.043048243969679,0.010422461666167,0.116437666118145,-0.027424154803157,0.116258881986141,-0.076354607939720,-0.027019344270229,-0.009208033792675,-0.126503363251686,-0.131667658686638,0.038516294211149,0.071552880108356,-0.099419184029102,0.024828905239701,0.078244090080261,0.005135911516845) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.004015783313662,-0.006089285481721,-0.055238228291273,-0.061707284301519,0.131312116980553,-0.033432595431805,-0.126908376812935,0.016696540638804,0.014544362202287,0.008763183839619,-0.082127287983894,-0.101453013718128,0.089715316891670,-0.009486459195614,-0.448962122201920,-0.077185563743114) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.012542014010251,0.035170551389456,-0.017883533611894,-0.015182192437351,-0.150938659906387,0.058748830109835,-0.090277634561062,-0.168999284505844,0.084160879254341,-0.164361387491226,-0.107670471072197,-0.000877222977579,-0.061341822147369,-0.029009100049734,-0.342362314462662,-0.025504048913717) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.086056046187878,-0.014913937076926,0.132985666394234,-0.029043223708868,-0.041969187557697,0.067451670765877,0.095423191785812,-0.168948620557785,-0.036086987704039,0.103923849761486,-0.058171063661575,-0.053968541324139,0.029972020536661,0.011830865405500,-0.256480425596237,-0.063163973391056) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.034216988831758,0.018830996006727,0.046681571751833,0.078305810689926,-0.051564600318670,-0.039014834910631,-0.007649722509086,-0.106942810118198,0.010449924506247,-0.007049895357341,-0.132806435227394,0.006218356080353,-0.030378799885511,0.142937928438187,0.034955460578203,-0.009460736066103) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.064835727214813,-0.195853248238564,-0.047210697084665,-0.293983608484268,-0.039001148194075,-0.162642747163773,0.057131119072437,-0.203341230750084,0.007960685528815,-0.054272834211588,0.055958308279514,0.025715021416545,-0.249757215380669,0.115492634475231,-0.004597699735314,0.165753364562988) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.027427986264229,0.052460283041000,0.007511449046433,0.092242769896984,-0.160433948040009,-0.082583330571651,0.045039165765047,0.041229777038097,0.039124350994825,-0.012346682138741,0.138544157147408,0.006308787502348,0.088405653834343,0.084819510579109,-0.016917068511248,0.090121097862720) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.091877646744251,0.018626850098372,-0.118136771023273,0.045495398342609,0.035321760922670,-0.006792774889618,0.035163987427950,-0.041694890707731,0.007695076055825,-0.108030565083027,0.085477381944656,0.177639812231064,-0.112248018383980,0.069821141660213,-0.078978918492794,-0.110785625874996) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.061489876359701,0.353613018989563,0.120809756219387,0.066798895597458,0.185710266232491,0.326374828815460,0.169877260923386,-0.145838141441345,0.028822517022491,0.053825199604034,-0.063765063881874,0.017739534378052,-0.217891395092010,-0.144425019621849,-0.165149748325348,0.049147751182318) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.192208245396614,-0.133252054452896,-0.169749632477760,-0.073863156139851,-0.260763853788376,-0.008146751672029,0.041760969907045,0.078466027975082,0.151633739471436,-0.131284475326538,-0.105717778205872,-0.044051341712475,0.103346191346645,0.076877549290657,-0.049647565931082,-0.020398242399096) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.007575658150017,-0.035772413015366,0.052662961184978,0.173279181122780,-0.014091524295509,0.065025500953197,-0.009510606527328,0.063135668635368,-0.047044713050127,-0.063715264201164,0.020722901448607,-0.047944899648428,-0.219373643398285,-0.158301189541817,-0.097059793770313,-0.002941836835817) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.107625931501389,-0.082950413227081,-0.106934063136578,-0.022569913417101,-0.073309153318405,-0.077086612582207,-0.093478955328465,0.091101177036762,-0.199654251337051,0.180442765355110,-0.029097141698003,-0.100641272962093,-0.099148243665695,-0.309232473373413,-0.087667815387249,0.049811594188213) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.055411446839571,0.047609053552151,0.109082475304604,0.004679325502366,-0.115500710904598,0.005706506781280,0.028066698461771,0.045974608510733,-0.006621834356338,0.001309467596002,0.129060864448547,-0.083941817283630,0.113990426063538,-0.109038464725018,-0.106524795293808,-0.020402923226357) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.457465291023254,-0.098506808280945,0.318792551755905,0.497550934553146) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 1_6

vec4 hook()
{
vec4 res = vec4(-0.103030599653721,-0.355299144983292,0.000677520234603,-0.467140406370163);
res += mat4(-0.015279491432011,-0.039656184613705,-0.043002542108297,0.043518099933863,0.001165274297819,0.148092836141586,-0.036291074007750,-0.026702599599957,-0.328709483146667,-0.059455100446939,0.175913408398628,-0.009756725281477,0.359596610069275,-0.190921574831009,-0.010851752012968,0.053145542740822) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.053374759852886,0.111538425087929,-0.064789094030857,-0.042436145246029,-0.122899286448956,-0.105948992073536,0.229266911745071,0.000577041064389,-0.263784706592560,-0.364377975463867,-0.012333992868662,0.035738743841648,-0.397288888692856,0.333840787410736,-0.056763309985399,-0.017464067786932) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.085518479347229,-0.092886798083782,0.016931960359216,-0.024453297257423,-0.076674208045006,0.348412930965424,0.033039290457964,-0.015161667019129,0.071700252592564,-0.147769048810005,-0.085269495844841,-0.034480076283216,0.163416326045990,-0.017397377640009,0.038432430475950,0.072528526186943) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.021463224664330,0.074464201927185,0.051178451627493,-0.017429390922189,-0.032959509640932,0.005602672230452,0.072785817086697,0.016438418999314,0.176167115569115,0.194362580776215,-0.162311866879463,-0.053001839667559,-0.012761653400958,0.006543140858412,-0.034218478947878,0.133603617548943) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.033193502575159,0.143630221486092,0.112748570740223,-0.044999856501818,-0.036301989108324,-0.125909686088562,-0.221009179949760,0.157859161496162,0.040987428277731,-0.014373259618878,0.221042379736900,0.265631705522537,-0.004281121771783,-0.001022198004648,-0.182830363512039,-0.095708146691322) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.114895515143871,-0.066825777292252,0.032875638455153,-0.020871859043837,-0.009432274848223,-0.186792746186256,-0.126788005232811,0.028466619551182,-0.011021607555449,0.071001231670380,0.297176301479340,0.335347414016724,-0.087041422724724,-0.036828279495239,-0.052517987787724,-0.001755451783538) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.064999684691429,0.069778218865395,-0.056865427643061,0.064317606389523,0.073387213051319,-0.009210743010044,-0.031198916956782,0.066000066697598,-0.004158213268965,0.055103354156017,0.032220475375652,0.096722938120365,-0.056102905422449,0.009471972472966,0.077801592648029,-0.036180928349495) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.021501637995243,-0.146385118365288,-0.040861345827579,-0.046591583639383,-0.079291917383671,-0.009611020796001,-0.079664736986160,-0.059145752340555,-0.069865450263023,-0.037340313196182,-0.377797365188599,-0.005584510043263,0.175955861806870,-0.039588242769241,0.170789226889610,0.176907584071159) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.055221408605576,0.050141502171755,-0.054230153560638,0.121016852557659,-0.013051626272500,0.007495228201151,-0.111555457115173,-0.033698175102472,0.043838862329721,0.051491621881723,-0.161405414342880,-0.022265244275331,-0.233443811535835,0.058450780808926,0.023197671398520,-0.108001485466957) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.122276902198792,-0.170582041144371,-0.026280850172043,0.049140103161335,-0.305375903844833,-0.110285356640816,0.032466854900122,0.000771198072471,0.251133084297180,-0.140001818537712,-0.032700136303902,-0.128906860947609,0.097682297229767,0.060710534453392,0.011541079729795,-0.144279897212982) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.017518937587738,-0.027839660644531,0.138076066970825,-0.425420701503754,0.060235727578402,-0.447097241878510,-0.077160812914371,-0.007446720264852,-0.104283750057220,0.280650228261948,0.149855077266693,0.091545224189758,0.143475964665413,0.005336035043001,0.037566535174847,0.241634398698807) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.161856994032860,-0.002729129511863,-0.026774382218719,-0.076168775558472,0.065619371831417,0.242287948727608,0.088914230465889,-0.037837095558643,-0.007008041255176,-0.135346636176109,-0.121139474213123,-0.103117525577545,-0.109458111226559,0.219529569149017,-0.079817146062851,-0.070324279367924) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.065759040415287,-0.222286716103554,-0.020532768219709,0.075783453881741,0.238916829228401,0.139337331056595,0.009443558752537,-0.082851484417915,0.035458728671074,0.019757548347116,0.050427697598934,0.177781045436859,0.091650068759918,-0.161417931318283,-0.012800367549062,-0.254342973232269) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.079201705753803,-0.197418913245201,-0.580928325653076,0.059112608432770,-0.088523440063000,-0.035095117986202,0.233516007661819,0.196922495961189,-0.084805794060230,0.156766906380653,-0.414635360240936,-0.382616579532623,-0.030498575419188,-0.140543296933174,0.127131924033165,0.442383110523224) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.008887287229300,-0.152432411909103,-0.041199587285519,0.092434741556644,0.013070148415864,0.041808515787125,-0.021772077307105,0.085859030485153,0.020597552880645,-0.136977553367615,0.096159122884274,-0.007877710275352,-0.019957654178143,0.008327418938279,0.084617078304291,0.186597838997841) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.141225174069405,-0.052070662379265,0.065972715616226,-0.052599072456360,-0.134771302342415,-0.058410268276930,0.043704614043236,0.060090314596891,0.012144793756306,-0.051440447568893,-0.028832552954555,-0.041407510638237,-0.191735103726387,-0.049769535660744,0.000121767225210,-0.083534769713879) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.000173294654815,-0.044993944466114,0.134355962276459,0.066648095846176,0.079342484474182,-0.052947536110878,-0.261960268020630,-0.007420026697218,-0.033019553869963,-0.061935015022755,0.376872509717941,0.010992610827088,-0.062037020921707,-0.024789687246084,-0.122029677033424,-0.107316233217716) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.031899001449347,-0.139110818505287,0.101006448268890,-0.014529340900481,0.053670473396778,0.116998016834259,0.014359996654093,0.046397436410189,0.081548817455769,0.036513071507215,-0.078292667865753,0.091718725860119,0.022644687443972,-0.003447221824899,-0.063180819153786,-0.070715785026550) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.163200944662094,-0.010945455171168,-0.025953005999327,0.100671850144863,0.376567900180817,0.060142241418362,-0.017893277108669,-0.059080187231302,0.173677191138268,0.230199322104454,0.089680321514606,-0.136720672249794,-0.092100933194160,0.166496202349663,0.083434984087944,0.015519734472036) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.148459181189537,-0.120877839624882,-0.245949059724808,-0.077736496925354,-0.171632230281830,0.390719205141068,0.119352027773857,0.077753707766533,0.066130682826042,0.075795799493790,0.310869336128235,-0.024818394333124,-0.159540116786957,-0.044228181242943,-0.036920037120581,0.068820133805275) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.020101265981793,-0.139186516404152,-0.010770387947559,-0.007553399074823,0.142631798982620,-0.060010828077793,-0.103012599050999,0.089616879820824,-0.018397090956569,0.092034406960011,0.054412525147200,-0.088477626442909,-0.044445704668760,-0.023225313052535,-0.034679170697927,0.007838414981961) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.166605889797211,0.041354540735483,0.064695671200752,-0.072462230920792,-0.235417678952217,-0.086194708943367,-0.159078210592270,-0.220370426774025,-0.016776980832219,-0.123206421732903,-0.046812158077955,-0.045497816056013,0.043835494667292,0.046117179095745,-0.100065179169178,-0.032794155180454) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.069124631583691,-0.007300355471671,0.422798156738281,-0.237920567393303,-0.292337238788605,-0.073083907365799,-0.236078262329102,-0.353871673345566,-0.095249988138676,0.128167510032654,-0.748613834381104,-0.056111838668585,0.133552312850952,0.122479081153870,0.044791825115681,-0.164600104093552) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.037485979497433,-0.039209716022015,0.250831484794617,-0.107004418969154,0.044234316796064,0.085300907492638,0.154891505837440,0.029242144897580,-0.139102756977081,0.021774297580123,-0.152258306741714,0.002435215283185,-0.054488468915224,-0.018196128308773,0.044793099164963,0.116691634058952) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.002040409250185,-0.038162477314472,-0.014596231281757,-0.012593043968081,-0.111612431704998,-0.051123496145010,0.098076008260250,-0.040582679212093,0.016009626910090,-0.060065668076277,-0.041150029748678,0.017129292711616,0.041394446045160,0.034189496189356,-0.184116184711456,0.031502582132816) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.024706870317459,0.031176110729575,-0.101006880402565,0.005272291135043,-0.080433435738087,-0.095732584595680,0.504003107547760,0.203156903386116,-0.039475146681070,-0.017070489004254,0.029090562835336,0.087270997464657,0.041621714830399,0.163334220647812,-0.174000978469849,0.037593577057123) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.007585418410599,-0.026972670108080,-0.039591159671545,-0.102760627865791,0.079138934612274,-0.022163338959217,-0.098821774125099,0.083416581153870,-0.002409965498373,-0.005356220528483,-0.026859208941460,-0.017957538366318,-0.121641069650650,0.112259335815907,0.061411801725626,0.091578446328640) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.126881897449493,0.105188906192780,-0.109663337469101,-0.065094083547592,-0.052105553448200,-0.077458061277866,0.003712870646268,0.007551833055913,0.133790150284767,-0.082129329442978,-0.004511842504144,-0.022869732230902,0.266143769025803,0.103462532162666,0.021289601922035,0.118573665618896) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.210601150989532,0.130753129720688,0.034641891717911,0.081696800887585,-0.072065107524395,-0.034938812255859,0.049314066767693,-0.007068577688187,0.099284529685974,0.256442844867706,0.097006201744080,0.043849106878042,0.049149457365274,0.154392629861832,0.045591022819281,0.098298162221909) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.009384823031723,0.199669659137726,0.049362968653440,0.117462106049061,-0.056177053600550,0.290236055850983,-0.069596387445927,0.034813661128283,0.054926421493292,-0.082959495484829,0.035890504717827,0.056123577058315,-0.159380897879601,0.127598658204079,-0.078947745263577,0.120582126080990) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.115943364799023,0.090929187834263,0.021986281499267,-0.038947746157646,0.134155556559563,0.070169538259506,-0.054390069097281,0.016775527969003,0.101651914417744,-0.036482248455286,-0.114939890801907,-0.032954096794128,0.198437526822090,0.213903456926346,-0.083768494427204,0.054251421242952) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.012720438651741,-0.155627816915512,0.063754908740520,-0.043186482042074,0.163958206772804,0.035104386508465,0.123004615306854,0.134903758764267,0.123690396547318,0.239440441131592,-0.033874604851007,-0.031500816345215,0.099688142538071,0.481659561395645,0.097180649638176,0.256164908409119) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.051166769117117,-0.127489387989044,-0.223076269030571,-0.199544608592987,0.116554357111454,0.065547972917557,-0.176517993211746,0.080599583685398,0.085529580712318,0.396549284458160,-0.081562764942646,0.036347839981318,-0.178748324513435,0.267579674720764,-0.024110399186611,0.180838838219643) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.278754204511642,-0.057466629892588,-0.082262292504311,0.008714090101421,0.001095711020753,0.032774325460196,0.002144839148968,-0.047872386872768,0.073177352547646,-0.076463833451271,0.095458671450615,0.158767998218536,-0.274396687746048,0.157109066843987,-0.008289820514619,0.047189574688673) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.078755147755146,-0.001579378265887,0.403043806552887,0.264008939266205,-0.055766832083464,-0.028692377731204,-0.065593063831329,0.029373493045568,-0.102197661995888,0.079281896352768,-0.079437337815762,0.031529773026705,-0.247894674539566,0.178683713078499,0.198010697960854,0.159611582756042) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.186495736241341,0.023194508627057,0.216081485152245,-0.035652648657560,-0.002622579224408,0.054482985287905,0.052301649004221,-0.032087907195091,0.037289258092642,0.008227641694248,0.105362236499786,0.034928280860186,-0.271524637937546,0.133623778820038,-0.284755617380142,0.234836533665657) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.150074228644371,0.072322271764278,-0.176791489124298,-0.006093463860452,0.241498559713364,-0.023527357727289,0.012952116318047,-0.007531824521720,-0.152822300791740,-0.176347076892853,-0.113282069563866,-0.034972421824932,-0.018417624756694,-0.025837372988462,0.299075871706009,-0.124211460351944) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.165728926658630,0.136884957551956,-0.011626590043306,0.028458710759878,-0.248491927981377,-0.016877608373761,0.017198175191879,0.009467573836446,0.043877370655537,0.038238044828176,0.035671867430210,0.038188241422176,0.114641487598419,0.097243055701256,0.025830250233412,-0.080820634961128) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.036891229450703,-0.235758796334267,0.029153646901250,-0.125989213585854,-0.186035528779030,-0.216629207134247,0.066454753279686,-0.055310517549515,0.011218002066016,0.069881297647953,0.045235127210617,0.058708932250738,0.076230421662331,-0.095180913805962,-0.038358710706234,0.070830784738064) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.144421443343163,0.023671211674809,0.183335006237030,-0.107957497239113,0.080193176865578,-0.061673291027546,-0.027329938486218,0.096733830869198,0.147437229752541,0.099148586392403,0.063079670071602,-0.007801573723555,-0.025530144572258,0.023419452831149,0.063088640570641,0.093660674989223) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.060921646654606,0.155015915632248,-0.084067560732365,-0.133445173501968,-0.047355033457279,0.159609407186508,-0.173999398946762,-0.207851469516754,-0.068039648234844,-0.026557721197605,0.082696855068207,0.145787835121155,-0.010416966862977,0.082045257091522,0.094976022839546,0.172721534967422) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.013840556144714,0.081512778997421,-0.030658721923828,-0.133087664842606,-0.048506811261177,0.056275483220816,-0.165030732750893,-0.147697404026985,-0.076113611459732,0.053912095725536,-0.165849402546883,0.004438463598490,-0.049570232629776,-0.056873027235270,-0.039161924272776,0.011561360210180) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.065970465540886,-0.007597405463457,0.168282970786095,-0.002031910466030,-0.034819237887859,-0.000271539029200,0.023819524794817,0.002661975100636,-0.085444696247578,-0.136002644896507,-0.033477611839771,-0.045894142240286,-0.034221302717924,0.080005168914795,0.014694049954414,-0.069108627736568) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.018562832847238,-0.121482357382774,-0.091234199702740,0.026858899742365,-0.113356083631516,0.111842662096024,-0.092658147215843,-0.038978382945061,0.105556741356850,-0.021079760044813,-0.083409652113914,-0.100502148270607,0.105921447277069,0.005402382928878,-0.009952701628208,-0.070241838693619) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.021752789616585,-0.097557559609413,0.025412490591407,0.038340169936419,-0.024072246626019,0.035557318478823,0.061711773276329,-0.007240150123835,0.070175923407078,0.031048247590661,0.156396418809891,0.025348581373692,0.008283267728984,-0.044713582843542,0.009014326147735,-0.027530211955309) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.389700978994370,0.156662285327911,0.006451980210841,-0.106077693402767,-0.041149724274874,-0.292901545763016,0.021980691701174,0.058947242796421,0.028394659981132,-0.015780493617058,0.024484211578965,-0.010616365820169,0.164741799235344,0.117967985570431,-0.116954326629639,0.067272737622261) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.133946925401688,-0.532652080059052,-0.092501759529114,0.109996922314167,-0.107695654034615,-0.100402608513832,0.008143147453666,0.277408242225647,-0.028245629742742,-0.300328612327576,-0.122033730149269,0.035947006195784,-0.025186676532030,0.582789182662964,-0.083325915038586,-0.026262380182743) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.054143555462360,0.332101583480835,0.039215993136168,0.059822592884302,-0.145258411765099,0.016138354316354,-0.007568710483611,-0.003154464764521,0.048596080392599,-0.044381070882082,-0.025468258187175,0.139491513371468,0.000356902193744,0.098760306835175,-0.146936282515526,0.009173553436995) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.204749986529350,-0.040970660746098,0.033652376383543,-0.192810133099556,-0.034408159554005,-0.097802914679050,0.034286230802536,-0.148005574941635,-0.021892255172133,-0.109817415475845,0.013143343850970,0.041420727968216,0.009129299782217,0.230298981070518,0.013222207315266,-0.058636408299208) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.104754671454430,-0.022614434361458,0.357238650321960,0.283625960350037,0.001773972064257,-0.082570500671864,0.214525565505028,0.438190490007401,-0.278536140918732,0.317767351865768,0.238191097974777,-0.152849942445755,-0.146201506257057,0.524108529090881,-0.204896941781044,-0.224715799093246) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.081567116081715,0.016662072390318,0.037340600043535,-0.027474464848638,-0.042893573641777,-0.069408982992172,-0.039628081023693,0.116673901677132,-0.119689807295799,0.249296471476555,0.111238971352577,0.034514009952545,-0.000551007804461,0.121766500174999,-0.026591461151838,-0.095517665147781) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.052264787256718,0.038000408560038,-0.051057990640402,-0.055960927158594,-0.124697580933571,-0.070974022150040,-0.078644834458828,-0.042132914066315,-0.045206807553768,0.082132466137409,0.117270492017269,-0.013407881371677,-0.073973745107651,0.154615804553032,0.073516368865967,-0.055720727890730) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.107299216091633,-0.003324023913592,-0.283930271863937,-0.018938994035125,-0.080236956477165,-0.039667852222919,-0.163114473223686,-0.030995491892099,-0.090785644948483,0.394050031900406,-0.097189523279667,0.008375273086131,-0.085086248815060,0.261932522058487,0.156113296747208,-0.183286771178246) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.079138115048409,0.163314938545227,-0.013941497541964,0.064231455326080,-0.070999093353748,-0.046573821455240,0.133271828293800,-0.140670254826546,-0.148168668150902,-0.005514845252037,-0.108841255307198,0.003192527918145,-0.127925291657448,0.069876819849014,0.239131629467010,-0.142076775431633) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.078622356057167,-0.016779055818915,-0.602805554866791,0.043396014720201) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 2_1

vec4 hook()
{
vec4 res = vec4(0.133895307779312,-0.023829614743590,0.145814090967178,-0.034776344895363);
res += mat4(0.057709760963917,0.207585707306862,0.051211390644312,-0.121433615684509,-0.147726982831955,-0.230232894420624,0.222535610198975,0.076712414622307,0.044867306947708,0.030208963900805,0.009201202541590,0.006055912002921,0.013167799450457,-0.113919198513031,-0.261778563261032,-0.061652977019548) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.043288830667734,0.085102282464504,-0.348515868186951,0.036388430744410,-0.018689623102546,-0.076304584741592,0.194462567567825,-0.039524011313915,-0.039618991315365,-0.014950541779399,0.407530099153519,-0.300064235925674,-0.213692516088486,-0.203043058514595,0.179676800966263,-0.091173686087132) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.001686520990916,0.154018118977547,-0.063041657209396,-0.061310254037380,0.016005383804440,0.053202021867037,0.120799906551838,0.116497874259949,-0.337830603122711,-0.077858805656433,-0.069743223488331,-0.457449108362198,0.019301973283291,0.138594388961792,-0.000172161249793,0.086153641343117) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.144553333520889,0.007706340402365,-0.158814936876297,0.075849749147892,-0.066143885254860,-0.100031793117523,0.099173203110695,0.022214083001018,-0.043082613497972,-0.031348038464785,-0.065033212304115,-0.126464441418648,-0.150299072265625,-0.114314354956150,0.205074742436409,-0.207897707819939) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.198819428682327,-0.014421164058149,-0.247593849897385,0.019173655658960,0.050494343042374,0.037660300731659,0.159130468964577,0.019863285124302,-0.019338546320796,0.213248461484909,0.165195882320404,0.053555615246296,0.097139239311218,-0.073751501739025,-0.087979018688202,0.417904913425446) * MODEL1_texOff(vec2(0,0));
res += mat4(0.032128077000380,0.004028968513012,0.033982630819082,0.095944516360760,0.052590478211641,0.128282517194748,0.072534352540970,0.211163386702538,0.057738617062569,0.090857572853565,-0.015246213413775,-0.312672466039658,0.098500214517117,0.059354968369007,-0.173780441284180,-0.288139224052429) * MODEL1_texOff(vec2(0,1));
res += mat4(0.014988293871284,-0.026362661272287,-0.234178155660629,0.171380251646042,0.142668142914772,-0.058607500046492,0.279924720525742,0.057861760258675,-0.008588605560362,0.069892898201942,-0.227965429425240,-0.087886646389961,0.035731978714466,-0.008976726792753,0.101428598165512,-0.071630172431469) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.019628809764981,0.038921002298594,-0.169608399271965,0.053467776626348,0.144871816039085,0.046719819307327,0.130941614508629,-0.094942100346088,0.042629897594452,-0.128288194537163,-0.353821247816086,-0.008486099541187,-0.204968377947807,0.108635589480400,-0.027543576434255,0.029952840879560) * MODEL1_texOff(vec2(1,0));
res += mat4(0.027956346049905,-0.092785343527794,0.007099285256118,-0.142102584242821,0.059226609766483,-0.104799218475819,0.093513347208500,0.150530889630318,0.259934604167938,-0.017986305058002,-0.015448870137334,0.054561037570238,-0.033513318747282,0.002391370479017,0.034795042127371,0.136073663830757) * MODEL1_texOff(vec2(1,1));
res += mat4(0.112565204501152,0.173320218920708,-0.081081330776215,-0.010725854896009,-0.058016117662191,0.030838336795568,-0.102626517415047,0.117819063365459,0.133344292640686,0.179370492696762,-0.200043216347694,-0.062468476593494,0.013488861732185,-0.213555127382278,-0.039126139134169,-0.036490682512522) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.078240975737572,-0.075784005224705,-0.015236212871969,0.169641092419624,0.116571515798569,-0.053412128239870,-0.040868416428566,-0.063707128167152,0.346894651651382,0.034414198249578,-0.258257865905762,0.267990350723267,0.110408604145050,-0.179844975471497,0.101230323314667,-0.016368232667446) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.037723228335381,-0.014164843596518,0.024114118888974,0.023380164057016,0.055528629571199,0.053555790334940,-0.112047672271729,-0.092219583690166,0.154990628361702,-0.138198778033257,-0.063762165606022,-0.037382423877716,0.035472750663757,-0.113876469433308,0.076083369553089,-0.056665964424610) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.080074697732925,0.312816381454468,-0.799716532230377,-0.086739867925644,0.012518888339400,0.059365384280682,0.054803956300020,-0.124065607786179,0.089832402765751,0.055748779326677,0.081662259995937,0.036353491246700,0.003000595839694,-0.101465538144112,-0.059772934764624,0.108656868338585) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.084911681711674,0.042736180126667,0.164903327822685,-0.102118380367756,-0.057273887097836,-0.045967403799295,0.004746074322611,0.022600969299674,0.162065953016281,-0.173742547631264,-0.125094741582870,-0.037436213344336,0.128205075860023,-0.022912092506886,-0.035771481692791,0.168971568346024) * MODEL2_texOff(vec2(0,0));
res += mat4(0.061245769262314,0.090794064104557,0.046640139073133,0.141588866710663,-0.138111561536789,-0.116966955363750,0.051779843866825,-0.028289360925555,0.205125242471695,-0.038941159844398,-0.085214465856552,-0.016082467511296,0.036202073097229,-0.046598441898823,0.017769012600183,-0.170177578926086) * MODEL2_texOff(vec2(0,1));
res += mat4(0.082129165530205,0.041756607592106,-0.413153499364853,-0.119696505367756,0.069301560521126,0.072023831307888,0.047478020191193,-0.066631339490414,0.211909160017967,0.012548803351820,0.000538177264389,-0.002965153660625,-0.073369100689888,-0.166800126433372,-0.044622730463743,0.119986481964588) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.060504369437695,-0.091091722249985,-0.085692502558231,0.046279538422823,0.070278957486153,0.164266407489777,0.093386754393578,-0.179803326725960,0.289464861154556,-0.096402607858181,-0.033524457365274,-0.065684154629707,-0.034610901027918,-0.080612614750862,0.030017254874110,0.142132565379143) * MODEL2_texOff(vec2(1,0));
res += mat4(0.095780774950981,0.067453622817993,0.033330626785755,-0.092797443270683,-0.142874211072922,0.018142761662602,-0.042094547301531,0.279849261045456,0.278066098690033,-0.009923310950398,-0.123131476342678,0.026841012760997,0.063174746930599,-0.121750243008137,0.044395517557859,-0.036540236324072) * MODEL2_texOff(vec2(1,1));
res += mat4(0.114432327449322,-0.052816923707724,-0.238601550459862,-0.243224129080772,0.065181747078896,0.096710316836834,-0.237855657935143,0.071224741637707,0.006584628019482,0.003159120911732,-0.158621057868004,-0.211238145828247,0.094552822411060,-0.001269734231755,-0.056146867573261,-0.095321573317051) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.088643804192543,-0.027473948895931,0.063275575637817,-0.291955083608627,0.046979885548353,0.142103210091591,0.054309811443090,0.239832311868668,-0.047028012573719,0.072236403822899,-0.120219320058823,-0.037393536418676,-0.014116126112640,-0.131832480430603,0.050663292407990,0.122255645692348) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.093867860734463,-0.047516573220491,0.063526317477226,-0.023330852389336,0.099802225828171,0.173474386334419,0.084675572812557,0.289353609085083,0.187385931611061,0.212010040879250,0.034296981990337,-0.204153776168823,-0.092147655785084,-0.295432776212692,-0.100602485239506,-0.046968199312687) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.084143966436386,0.153538852930069,-0.103524327278137,0.087223544716835,-0.127833306789398,0.052373677492142,-0.222679972648621,0.068804226815701,0.046871475875378,0.067618116736412,-0.599461615085602,0.080009445548058,-0.027721317484975,0.012986880727112,-0.047322679311037,0.134131386876106) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.232490807771683,0.045439373701811,-0.012567915022373,0.229835614562035,-0.003960826434195,0.168283477425575,0.006899436470121,0.177948504686356,0.106128536164761,0.135924130678177,-0.233247980475426,0.108462736010551,0.081828668713570,-0.375660836696625,0.312143832445145,-0.120290428400040) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.373804897069931,-0.022833030670881,-0.075370430946350,0.148474767804146,-0.077657379209995,0.132612094283104,-0.041645228862762,0.360287070274353,0.078760616481304,0.126710936427116,-0.084853492677212,0.074675329029560,0.040938660502434,-0.127743229269981,0.009996856562793,-0.066955208778381) * MODEL3_texOff(vec2(0,1));
res += mat4(0.075154647231102,0.141284987330437,-0.049027118831873,-0.103877261281013,-0.085255287587643,0.066571168601513,-0.113415077328682,0.037462025880814,-0.096945971250534,0.021834570914507,-0.090248756110668,-0.013681802898645,0.004320418462157,0.105426862835884,-0.154129877686501,0.045466680079699) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.019377904012799,-0.044781900942326,-0.058286223560572,-0.044253680855036,-0.292036712169647,0.048610627651215,0.110935084521770,0.129223257303238,-0.087711818516254,-0.007695406209677,0.062645182013512,-0.063533909618855,-0.013786314986646,0.108888402581215,-0.000073928837082,0.036758132278919) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.009905467741191,-0.059914875775576,0.062204733490944,0.046688988804817,-0.178579688072205,-0.050814114511013,-0.064769074320793,0.170875698328018,-0.077030919492245,-0.036222632974386,0.042376562952995,-0.088603965938091,-0.064203284680843,0.037674583494663,-0.013058826327324,-0.007044867612422) * MODEL3_texOff(vec2(1,1));
res += mat4(0.115991033613682,0.334268629550934,0.054192788898945,0.016345484182239,0.136775374412537,-0.177869483828545,-0.082155555486679,-0.173848956823349,-0.033208549022675,-0.026050357148051,0.085011176764965,-0.036504775285721,0.034025728702545,-0.016580741852522,0.061061058193445,-0.028139425441623) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.012881567701697,0.197720095515251,0.050313957035542,0.006527453195304,0.220942646265030,0.152616515755653,-0.095416992902756,-0.005096448119730,0.026898805052042,0.152874261140823,0.082264617085457,0.263444691896439,0.030763773247600,0.039164002984762,0.041209302842617,-0.054282192140818) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.082277186214924,0.010131263174117,0.055491883307695,0.108688741922379,0.067709982395172,0.200266703963280,-0.159222394227982,0.108781151473522,-0.103050477802753,0.006882203277200,-0.036130219697952,0.025400044396520,-0.028070507571101,-0.033730547875166,0.028435643762350,-0.052934210747480) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.059254851192236,-0.062483269721270,-0.455778151750565,-0.074867375195026,0.005804455373436,0.154773533344269,0.044003896415234,-0.182917580008507,-0.026493972167373,-0.080004364252090,0.381636053323746,-0.182081833481789,-0.024563487619162,0.015982244163752,0.029426764696836,0.052889447659254) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.103509955108166,-0.259308487176895,0.046387560665607,0.067827023565769,-0.135585486888885,-0.014116934500635,0.012427043169737,0.060703989118338,-0.152875795960426,-0.236074686050415,-0.261996626853943,-0.550095558166504,-0.012809114530683,0.206828132271767,0.017022717744112,0.105811595916748) * MODEL4_texOff(vec2(0,0));
res += mat4(0.164039373397827,-0.052138589322567,0.045269284397364,-0.011452696286142,-0.240014359354973,0.013341866433620,-0.018099337816238,0.149302080273628,0.044304512441158,0.047946590930223,-0.074623465538025,-0.026531465351582,-0.085438609123230,-0.069990374147892,0.054101023823023,-0.033723793923855) * MODEL4_texOff(vec2(0,1));
res += mat4(0.006060027517378,-0.214615523815155,-0.095663405954838,-0.137957319617271,0.094429314136505,-0.080369971692562,0.313516497612000,-0.115020439028740,0.085432857275009,0.008811336010695,-0.007522156927735,-0.071662135422230,0.067651979625225,0.170365884900093,0.037757091224194,-0.102480798959732) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.090285971760750,-0.114069513976574,0.054343685507774,0.044433731585741,-0.237657770514488,-0.120097994804382,1.022597908973694,-0.001616778667085,0.287449926137924,0.013519122265279,0.001345948781818,-0.084281787276268,0.088338159024715,0.191987439990044,-0.033616889268160,-0.027577172964811) * MODEL4_texOff(vec2(1,0));
res += mat4(0.110162504017353,-0.003488912945613,0.084865309298038,-0.162374258041382,-0.104706428945065,-0.216551691293716,-0.214957937598228,-0.217698290944099,-0.103197649121284,0.131210520863533,-0.033863328397274,-0.033363673835993,-0.060581654310226,0.029740180820227,-0.010520259849727,-0.088506698608398) * MODEL4_texOff(vec2(1,1));
res += mat4(0.001983403461054,-0.240057200193405,0.001462400192395,-0.017248269170523,0.029269905760884,-0.018939008936286,-0.034225050359964,-0.106376610696316,-0.110051617026329,-0.182602301239967,-0.009978614747524,0.113786809146404,0.031133493408561,0.095486417412758,-0.020169945433736,-0.022183680906892) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.140819728374481,-0.074329592287540,0.082412593066692,0.192168503999710,0.067626871168613,-0.080148786306381,-0.081384785473347,-0.175469577312469,-0.138298779726028,-0.230955153703690,-0.287195652723312,-0.132997944951057,0.006433914415538,0.250403493642807,0.004422537516803,0.166905641555786) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.042651847004890,0.082517720758915,0.027104482054710,-0.011085475794971,0.100472129881382,-0.022492187097669,-0.034266117960215,0.014394927769899,0.073555402457714,0.171159133315086,-0.044057469815016,0.071946740150452,-0.106240116059780,0.069875910878181,0.040732480585575,0.089445054531097) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.068264998495579,-0.117857538163662,0.210504770278931,0.042828280478716,0.107789114117622,0.016627876088023,0.090117551386356,-0.092713057994843,0.116737946867943,-0.182430654764175,0.256127864122391,-0.116035833954811,-0.101701162755489,0.061296973377466,0.017559880390763,-0.061064403504133) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.120573684573174,-0.213092967867851,-0.099031545221806,0.030069570988417,-0.076746627688408,0.134715065360069,-0.046782217919827,0.146279141306877,0.133333310484886,0.089881002902985,-0.111861906945705,-0.079877451062202,0.110552787780762,-0.158500850200653,0.192853480577469,-0.100677326321602) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.020054493099451,0.037925325334072,0.007583131082356,-0.101819016039371,0.049610562622547,-0.060333102941513,0.027324432507157,0.028025802224874,-0.118885263800621,0.091513663530350,-0.017031140625477,-0.052084106951952,-0.051612127572298,0.019569657742977,-0.057275701314211,-0.007630590815097) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.037494186311960,0.025821484625340,0.209833890199661,-0.036628983914852,0.052002139389515,0.073697090148926,-0.447148799896240,0.028609864413738,0.019161449745297,0.316940963268280,0.024603549391031,-0.142907157540321,0.090593852102757,-0.026275726035237,-0.236073449254036,-0.009807815775275) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.013948555104434,-0.016485547646880,0.029006049036980,-0.108401514589787,-0.489087879657745,0.153599902987480,-0.092917062342167,-0.205944851040840,-0.335485517978668,-0.026944659650326,-0.074075132608414,-0.058214653283358,0.010662350803614,-0.065435543656349,0.074482649564743,-0.114945262670517) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.083116680383682,-0.145351171493530,0.003525613574311,0.032152045518160,-0.123549506068230,-0.195522159337997,-0.053272716701031,0.051245380192995,0.102587580680847,-0.088590614497662,0.025773985311389,0.242211237549782,0.091252431273460,0.050999272614717,0.015335322357714,0.060191508382559) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.051175747066736,0.008578109554946,0.152083694934845,0.161424919962883,-0.005875356029719,0.028031356632710,0.075187265872955,0.012340102344751,-0.013178873807192,0.004001362249255,-0.490408420562744,0.054744131863117,0.002450737636536,-0.088474966585636,-0.134773507714272,-0.236004024744034) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.110479429364204,0.025093449279666,0.205791980028152,0.183835580945015,-0.218190312385559,-0.055072516202927,0.012370364740491,0.029896229505539,-0.119784310460091,0.008925737813115,0.004331190604717,0.000430405023508,0.009180858731270,-0.106006510555744,0.064750075340271,-0.030850239098072) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.056241035461426,0.072952121496201,0.208762228488922,-0.005617008544505,-0.124866679310799,0.061874952167273,0.010359421372414,0.138718023896217,-0.085493862628937,0.036823734641075,-0.083217412233353,0.111561350524426,0.047001376748085,0.145575359463692,-0.098600134253502,0.276338428258896) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.096337616443634,-0.065459147095680,0.035686422139406,0.221761077642441,0.159397020936012,0.126421704888344,-0.019044961780310,-0.059624705463648,-0.114235870540142,-0.062354512512684,-0.074410870671272,-0.093224741518497,-0.082708545029163,-0.263683080673218,0.176625669002533,-0.020229289308190) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.048328943550587,-0.089811697602272,0.255618065595627,0.022750573232770,0.034324608743191,-0.089546233415604,-0.124591492116451,0.139534398913383,-0.252281635999680,0.108302451670170,0.087776117026806,0.011321621946990,0.049610577523708,0.179484784603119,-0.227421417832375,-0.167722329497337) * MODEL6_texOff(vec2(0,0));
res += mat4(0.019030408933759,-0.046998575329781,0.150804772973061,0.104597322642803,-0.047410581260920,-0.104745015501976,-0.105534419417381,-0.065632276237011,-0.170100942254066,0.090505927801132,-0.031584627926350,-0.096261292695999,0.142395153641701,0.101221926510334,0.130427852272987,0.015030194073915) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.205291062593460,0.010406641289592,0.217637807130814,0.070412009954453,0.099697001278400,-0.116087585687637,0.164386883378029,-0.195168003439903,-0.133247524499893,0.048095218837261,-0.065774887800217,0.027504283934832,0.006479974836111,-0.111021086573601,0.073319293558598,-0.185695379972458) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.269519388675690,-0.172855898737907,0.071972459554672,-0.100385621190071,-0.065827094018459,-0.051622156053782,-0.195942908525467,-0.394784927368164,-0.398231297731400,0.037305105477571,0.007298381533474,0.045644335448742,-0.071688465774059,0.162101268768311,-0.210996791720390,-0.277601659297943) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.204674631357193,0.061947520822287,0.075352244079113,-0.258271157741547,-0.014096096158028,0.205607652664185,-0.064983725547791,0.014285842888057,-0.208643928170204,-0.020647838711739,-0.073777623474598,-0.105699881911278,0.153179988265038,-0.049610581248999,-0.106017336249352,-0.001568521023728) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.190316870808601,-0.545267164707184,-0.019467473030090,0.208014398813248) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 2_2

vec4 hook()
{
vec4 res = vec4(0.285684436559677,-0.051362290978432,0.181920394301414,-0.027434999123216);
res += mat4(0.167419999837875,0.050312280654907,0.123481728136539,-0.081199362874031,0.101203873753548,-0.122242428362370,0.246685564517975,-0.244861677289009,-0.068525038659573,0.052643779665232,0.003202443243936,0.053327891975641,-0.016186598688364,-0.126509636640549,0.003271559718996,0.140325054526329) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.063428640365601,0.036839894950390,0.108241349458694,0.058517642319202,-0.039875485002995,-0.031382445245981,0.063825450837612,0.144309058785439,0.040856666862965,-0.187844499945641,-0.140103116631508,-0.017257444560528,0.241450995206833,-0.386274158954620,-0.160791695117950,0.082117289304733) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.085163719952106,-0.286371767520905,0.072463773190975,-0.109779693186283,0.202430963516235,0.027529286220670,0.227359414100647,0.021237095817924,-0.027401329949498,0.258214294910431,0.124285206198692,-0.145800665020943,0.158585816621780,-0.141936480998993,0.104570828378201,0.037430558353662) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.064968198537827,-0.000423839112045,-0.011579426936805,-0.021551690995693,0.031473983079195,-0.098988257348537,-0.133078619837761,-0.209028258919716,0.032377097755671,-0.038513902574778,-0.012795802205801,0.088771305978298,0.195024266839027,-0.017160382121801,-0.051038559526205,-0.168048337101936) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.170535042881966,0.135785356163979,-0.001168264891021,0.174483433365822,-0.069180585443974,0.046017590910196,-0.161308318376541,0.024614538997412,-0.150655612349510,-0.069588027894497,0.063884004950523,0.051975667476654,0.094610080122948,0.005207031965256,0.074866324663162,0.068387962877750) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.001652896404266,0.007944448851049,-0.156117111444473,-0.106270082294941,0.196808427572250,0.148884296417236,0.066123351454735,0.015043471008539,-0.047920566052198,0.187825366854668,0.077776163816452,-0.133842661976814,-0.014726111665368,-0.001999366097152,0.042782627046108,0.049789845943451) * MODEL1_texOff(vec2(0,1));
res += mat4(0.092344917356968,0.089358754456043,0.057644311338663,0.032842643558979,-0.027316581457853,0.136903911828995,-0.035201769322157,-0.018378473818302,0.102864295244217,-0.219415336847305,0.095143653452396,-0.087989807128906,-0.029722359031439,-0.060580912977457,0.015840480104089,0.070347711443901) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.244189724326134,-0.160576194524765,0.117289006710052,0.103913903236389,-0.112188912928104,-0.043683491647243,0.067028753459454,-0.028171531856060,-0.023133393377066,0.013278918340802,-0.014251890592277,-0.047160577028990,0.112749926745892,0.183401748538017,0.115714423358440,0.037260387092829) * MODEL1_texOff(vec2(1,0));
res += mat4(0.239906534552574,0.025294402614236,0.108205825090408,-0.072750337421894,0.087633676826954,0.208307072520256,0.025473592802882,0.014417990110815,0.001942160655744,-0.275309056043625,0.040807120501995,0.014754413627088,-0.072625830769539,0.277137100696564,-0.032926652580500,-0.039883345365524) * MODEL1_texOff(vec2(1,1));
res += mat4(0.259422272443771,-0.045449983328581,-0.050348848104477,0.160689026117325,-0.064082942903042,0.215081170201302,-0.078091979026794,-0.071359865367413,0.252885997295380,-0.197140276432037,0.199607565999031,-0.151940748095512,-0.098966926336288,0.005936799570918,0.098757140338421,0.203650563955307) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.009027666412294,-0.065377496182919,-0.023849841207266,-0.261645078659058,-0.108234390616417,-0.233452543616295,-0.037757813930511,0.150483205914497,0.009677264839411,-0.008098139427602,-0.023216202855110,-0.129901170730591,-0.086147636175156,0.072887375950813,0.196868091821671,0.002427850384265) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.090189851820469,0.114118166267872,0.065320804715157,-0.017784377560019,-0.137947648763657,0.041062984615564,0.021933518350124,0.010179586708546,-0.064048036932945,-0.268325090408325,0.175392821431160,0.117511533200741,-0.047613743692636,0.230267047882080,0.254120796918869,-0.144076004624367) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.076395392417908,0.141090944409370,0.085628829896450,0.273793905973434,-0.044206097722054,0.080594435334206,0.130369678139687,-0.118615530431271,0.286316663026810,0.066557817161083,0.042579386383295,-0.147879853844643,-0.070703625679016,0.013331967405975,0.049989525228739,0.141860157251358) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.121660426259041,-0.026328532025218,-0.087523035705090,-0.006028018426150,-0.162644326686859,-0.010164494626224,0.073998369276524,-0.056876119226217,0.375164747238159,0.240734785795212,-0.079140633344650,-0.247669801115990,-0.190625369548798,0.057677909731865,0.163787022233009,0.148867294192314) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.043925780802965,-0.067846328020096,0.004331571049988,0.004327082540840,0.156308218836784,0.080400072038174,-0.040017142891884,0.159768268465996,0.311677992343903,0.078446760773659,0.039124526083469,0.148379266262054,-0.115282990038395,-0.000508507131599,0.185678258538246,0.044048510491848) * MODEL2_texOff(vec2(0,1));
res += mat4(0.072591960430145,0.054761774837971,-0.032091908156872,0.037522524595261,0.075846806168556,0.170344531536102,0.019188106060028,0.075654678046703,-0.028593415394425,-0.016846923157573,-0.057413537055254,-0.018873553723097,0.034858345985413,0.082855932414532,0.205191031098366,0.093938834965229) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.151691317558289,-0.019002644345164,-0.200913101434708,-0.022428121417761,0.100515119731426,-0.127241224050522,0.172337010502815,0.055056285113096,0.063787028193474,-0.028464479371905,-0.169313207268715,-0.204850465059280,0.061844650655985,-0.018913222476840,0.170371472835541,0.064705923199654) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.009471246972680,-0.113471925258636,-0.136123940348625,-0.042653378099203,0.188791885972023,-0.208887740969658,-0.048832111060619,0.069779112935066,0.007536911871284,-0.052644830197096,0.000234483057284,-0.023759163916111,0.067625388503075,-0.077657468616962,0.266042709350586,-0.020687496289611) * MODEL2_texOff(vec2(1,1));
res += mat4(0.229085102677345,-0.025714855641127,0.001824809587561,0.099841520190239,-0.046890228986740,0.136178210377693,-0.100862793624401,-0.062294326722622,0.043382175266743,-0.055164963006973,-0.021885761991143,0.183061391115189,0.039871186017990,-0.154940694570541,0.007645825855434,-0.122472546994686) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.187009230256081,-0.020490678027272,-0.032589092850685,0.167178675532341,-0.160943567752838,0.270770549774170,-0.110374152660370,-0.183173462748528,-0.229222342371941,0.059041503816843,-0.160272106528282,0.087825149297714,0.098517514765263,0.081018365919590,-0.015497019514441,-0.317944884300232) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.104487977921963,0.163038775324821,0.248174771666527,-0.193369403481483,-0.015749106183648,0.293774664402008,0.008107038214803,-0.162763625383377,-0.151588663458824,0.305365920066833,-0.095608495175838,-0.238687589764595,0.064924120903015,-0.266723871231079,-0.037985935807228,-0.015900092199445) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.156813576817513,-0.133282020688057,0.086473502218723,0.163549602031708,-0.123059891164303,0.095966652035713,-0.246688544750214,0.006976583506912,-0.015023264102638,-0.000197471599677,-0.124844595789909,0.327098011970520,0.134077906608582,-0.231462374329567,0.047721881419420,-0.090440228581429) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.061432950198650,-0.077091537415981,0.084618873894215,-0.153869688510895,-0.034540347754955,0.120249867439270,-0.166206851601601,0.050037384033203,-0.130910620093346,-0.418390840291977,-0.147751912474632,0.012299502268434,0.010647504590452,-0.118947803974152,0.153473183512688,-0.013582833111286) * MODEL3_texOff(vec2(0,0));
res += mat4(0.038743797689676,-0.084093503654003,-0.121039152145386,0.003487468464300,0.148930773139000,0.031480915844440,0.085842631757259,-0.050469473004341,-0.118450812995434,-0.253549695014954,-0.336177855730057,-0.050252199172974,-0.134715780615807,0.142587140202522,0.289524078369141,0.023510940372944) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.119585841894150,0.075993724167347,-0.093579813838005,-0.000996423303150,0.157069921493530,-0.096693679690361,0.011773942038417,0.041681900620461,0.022827317938209,0.005426781252027,0.029471477493644,-0.015978354960680,-0.028757143765688,0.036000736057758,-0.062384661287069,0.026290994137526) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.027792204171419,-0.123913012444973,0.018998548388481,-0.027353666722775,0.099129296839237,-0.035717912018299,-0.095906078815460,-0.140825435519218,0.197751745581627,-0.291657000780106,0.060298774391413,0.036029104143381,0.154105201363564,0.125954240560532,-0.027592504397035,-0.022888815030456) * MODEL3_texOff(vec2(1,0));
res += mat4(0.037590764462948,-0.006230826489627,0.062513016164303,0.031356289982796,0.156131833791733,0.135924458503723,0.104829698801041,-0.106594137847424,0.080346480011940,-0.241450548171997,-0.028763512149453,-0.017284220084548,-0.059965386986732,0.002572753233835,0.071876585483551,0.013770410791039) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.027388935908675,0.042274374514818,0.036108691245317,-0.206190198659897,-0.070289462804794,-0.114892773330212,-0.180942058563232,0.002754332730547,-0.108395740389824,-0.012524420395494,-0.032695308327675,0.001621852396056,0.044946689158678,-0.037538602948189,-0.255692511796951,0.028078835457563) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.040319554507732,0.004495557863265,0.076925948262215,-0.121748186647892,-0.360954433679581,0.025756578892469,-0.141419887542725,-0.110580459237099,-0.050894614309072,-0.127331331372261,0.037883136421442,-0.039378374814987,0.076737619936466,0.056032251566648,-0.243936106562614,-0.026706777513027) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.068294391036034,0.073809109628201,-0.148901537060738,0.228259384632111,-0.152773439884186,0.424230307340622,0.179163366556168,-0.096376389265060,-0.005859204567969,-0.084300711750984,0.010360896587372,0.196942448616028,0.118342094123363,-0.085511356592178,-0.237757861614227,0.019736584275961) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.016376897692680,0.168184116482735,0.250103563070297,-0.186419814825058,0.075259625911713,-0.141316935420036,-0.283636391162872,-0.127540528774261,-0.154978394508362,-0.263197869062424,-0.020645260810852,-0.154379472136497,0.039602901786566,0.061299405992031,-0.236243739724159,-0.113016434013844) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.199270486831665,-0.200824573636055,-0.389730632305145,-0.149829834699631,-0.041966196149588,-0.057284239679575,-0.058500573039055,-0.048964615911245,-0.124024316668510,0.084597736597061,-0.206451341509819,-0.033327430486679,0.024037910625339,-0.085153974592686,-0.363708317279816,0.093782767653465) * MODEL4_texOff(vec2(0,0));
res += mat4(0.000715989735909,-0.241586625576019,0.012281545437872,0.096184127032757,0.145245790481567,0.203302681446075,0.026119885966182,0.332070112228394,-0.041205313056707,-0.051053639501333,0.024350227788091,0.057031720876694,0.022723620757461,-0.089818812906742,-0.373528242111206,-0.025764001533389) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.182497769594193,0.096509225666523,-0.075876712799072,0.109225898981094,0.156379342079163,0.119819611310959,0.070506706833839,-0.076543465256691,-0.035852238535881,-0.056340284645557,0.131720095872879,0.099544368684292,-0.050419140607119,-0.121941320598125,-0.237512499094009,-0.014530471526086) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.058188151568174,0.188115268945694,-0.032012145966291,-0.005819075275213,0.109218426048756,0.040529228746891,0.188870877027512,-0.155407845973969,0.040930937975645,0.004850370809436,0.015421278774738,0.080187544226646,-0.052620947360992,-0.062222938984632,-0.464271456003189,-0.063718080520630) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.050402883440256,-0.148128181695938,0.012741763144732,-0.090686656534672,0.167854011058807,0.696422398090363,0.374944597482681,0.216631889343262,-0.021464396268129,0.073676124215126,0.048498351126909,-0.009923133999109,0.047578752040863,0.025927623733878,-0.569023787975311,-0.004455273970962) * MODEL4_texOff(vec2(1,1));
res += mat4(0.046129051595926,0.067551687359810,-0.178978234529495,0.000734089233447,-0.104839719831944,-0.064971797168255,-0.020553760230541,-0.111924394965172,-0.211664706468582,0.035098996013403,0.033105269074440,-0.083144351840019,0.153847128152847,0.021506689488888,0.093648791313171,0.043415695428848) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.014849917963147,0.025357842445374,-0.142398729920387,0.020459666848183,-0.175713509321213,0.003327788552269,0.010549322701991,0.014560612849891,0.072095490992069,-0.068929448723793,-0.076021783053875,0.140619441866875,-0.052734296768904,0.114271983504295,0.190650701522827,-0.065881185233593) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.061984919011593,-0.198812812566757,0.019424419850111,0.015588963404298,-0.077052861452103,0.145024597644806,0.045386001467705,0.030263204127550,-0.217783093452454,0.183428943157196,-0.063095740973949,-0.123429208993912,0.170822024345398,0.067937500774860,0.126895442605019,0.263236314058304) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.147591784596443,0.200882285833359,-0.207951173186302,0.039699692279100,-0.188761934638023,-0.120251037180424,0.016687573865056,-0.035069864243269,-0.311304450035095,0.117561727762222,-0.143645852804184,0.033746767789125,-0.037425551563501,0.007140444125980,0.051344044506550,-0.194901630282402) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.144558519124985,-0.077548526227474,0.123457029461861,0.016525363549590,-0.565146565437317,0.290224701166153,0.100948192179203,-0.063302688300610,0.049365460872650,-0.070514388382435,0.080158591270447,0.203704819083214,-0.225875884294510,-0.106911659240723,0.058613579720259,-0.222078680992126) * MODEL5_texOff(vec2(0,0));
res += mat4(0.186314687132835,0.082926996052265,-0.044960379600525,0.074828006327152,-0.004535021726042,0.160728052258492,-0.076193049550056,0.061717811971903,0.045431919395924,0.035002809017897,0.209369167685509,-0.000518116285093,-0.069895341992378,0.084877081215382,-0.134602993726730,0.155316665768623) * MODEL5_texOff(vec2(0,1));
res += mat4(0.005363832227886,0.139215528964996,0.159470841288567,0.044638268649578,-0.077787391841412,0.053887706249952,-0.017794128507376,-0.182059198617935,0.055056761950254,0.056429069489241,-0.006837092805654,-0.003388918004930,0.184222772717476,-0.006799972150475,0.037412784993649,0.056136947125196) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.086284890770912,0.047464158385992,0.068758234381676,0.136722713708878,-0.272378414869308,-0.202857390046120,-0.188252896070480,-0.224432468414307,-0.055623698979616,0.006282351445407,-0.092132791876793,-0.068870723247528,-0.008733004331589,-0.223923847079277,0.078961774706841,-0.132791325449944) * MODEL5_texOff(vec2(1,0));
res += mat4(0.112951256334782,-0.136409521102905,-0.031307730823755,-0.023086776956916,-0.023924259468913,-0.115254439413548,0.000487028446514,0.037747342139482,0.022797796875238,0.180203825235367,-0.066841401159763,0.036356192082167,-0.182753309607506,0.045838583260775,-0.177325576543808,0.139412015676498) * MODEL5_texOff(vec2(1,1));
res += mat4(0.065312147140503,0.344791829586029,0.145859971642494,-0.023903464898467,-0.046273455023766,-0.060067150741816,-0.052363425493240,-0.075324811041355,-0.548027992248535,0.092546157538891,-0.155609175562859,0.121485017240047,-0.098014317452908,-0.098849646747112,-0.025788778439164,0.019446162506938) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.065214060246944,0.207965537905693,0.099665135145187,0.015171259641647,-0.157781630754471,0.006810840219259,-0.003317922819406,0.105829864740372,-0.872042059898376,-0.043583009392023,-0.211509376764297,0.001012938213535,-0.002424952574074,-0.184367537498474,-0.092685759067535,0.089624613523483) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.031366683542728,0.311880379915237,0.171430975198746,0.043912302702665,0.025666518136859,0.047452706843615,-0.020255960524082,0.002950019435957,-0.459642380475998,-0.041669327765703,0.066373161971569,-0.106479540467262,-0.101462893188000,0.016627890989184,0.077868983149529,-0.273028433322906) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.077429875731468,0.255852818489075,0.113093242049217,0.079566203057766,0.067289568483829,0.114635020494461,-0.034813072532415,-0.328779995441437,-0.307081729173660,-0.096722178161144,0.014123624190688,0.122145749628544,0.019827585667372,-0.038661390542984,0.084349341690540,-0.140438482165337) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.122471153736115,0.118214346468449,0.055091399699450,0.006554273422807,-0.108167447149754,-0.276974201202393,-0.022331636399031,-0.054948288947344,-0.464437276124954,-0.336893409490585,0.060533985495567,0.013519226573408,-0.207790479063988,0.199218884110451,0.072280369699001,0.254262953996658) * MODEL6_texOff(vec2(0,0));
res += mat4(0.090020015835762,-0.106034435331821,-0.009946893900633,0.179689109325409,0.001664194976911,-0.285256445407867,0.120474085211754,0.144961491227150,-0.224428921937943,-0.198274910449982,0.010413623414934,-0.038841761648655,0.150453001260757,-0.125680297613144,-0.037429548799992,-0.031264249235392) * MODEL6_texOff(vec2(0,1));
res += mat4(0.141085326671600,0.190712109208107,0.198409691452980,0.186576366424561,-0.221853718161583,-0.026048962026834,0.001294876798056,0.023501457646489,-0.008435466326773,-0.010084525682032,0.054061282426119,-0.031150734052062,0.000230187666602,0.084916330873966,0.067940123379230,0.037145137786865) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.067653827369213,0.199373796582222,0.082911394536495,-0.046241451054811,-0.135471314191818,0.042834758758545,-0.114681012928486,-0.075327865779400,-0.102722316980362,-0.223692089319229,-0.005716213490814,-0.026994409039617,-0.015973443165421,0.271948963403702,-0.047016382217407,-0.058398485183716) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.193820744752884,0.019784966483712,0.260229706764221,0.164828434586525,-0.041674721986055,-0.022669214755297,-0.047608453780413,-0.054210223257542,0.033358298242092,-0.188814207911491,0.039875052869320,0.023865606635809,0.017848340794444,-0.128485083580017,0.168518453836441,-0.073043666779995) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.011708811856806,0.019197288900614,-0.105404138565063,-0.216991037130356) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 2_3

vec4 hook()
{
vec4 res = vec4(0.100016959011555,0.035963408648968,-0.102307505905628,0.154913410544395);
res += mat4(-0.084157995879650,-0.122855909168720,-0.091386452317238,-0.041635654866695,-0.385450661182404,-0.101048007607460,-0.222664728760719,0.223333746194839,-0.129231497645378,-0.061370298266411,-0.191590115427971,0.010737829841673,-0.011276852339506,-0.088137552142143,-0.301761180162430,-0.141964569687843) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.096072144806385,-0.122922509908676,0.053129769861698,-0.291147530078888,-0.127414166927338,0.055453453212976,0.090227179229259,0.112961657345295,-0.146812304854393,-0.232137426733971,0.325010299682617,-0.066019780933857,0.207961365580559,-0.283202260732651,0.217322915792465,0.278733015060425) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.227016031742096,-0.221225053071976,0.068639487028122,-0.024162312969565,-0.060821242630482,0.206481918692589,0.059446178376675,0.026059202849865,-0.257606297731400,-0.251371055841446,0.025004414841533,0.030441893264651,0.089191325008869,-0.097380004823208,-0.085215888917446,0.016007203608751) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.046591799706221,0.122009180486202,0.012185823172331,-0.026779631152749,-0.216855704784393,-0.266689538955688,-0.168210148811340,0.310512065887451,0.011593336239457,-0.144769996404648,-0.059699714183807,-0.088046669960022,0.073928251862526,0.189513027667999,0.139280214905739,0.036189708858728) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.172004982829094,0.254321843385696,0.065818965435028,-0.535011470317841,-0.086168102920055,-0.066543683409691,0.256870210170746,-0.061771992594004,-0.101144775748253,-0.049881592392921,0.256548881530762,-0.091289140284061,-0.053124625235796,0.266835570335388,-0.182337969541550,0.052779335528612) * MODEL1_texOff(vec2(0,0));
res += mat4(0.034732062369585,0.169698476791382,-0.189731582999229,-0.136379227042198,-0.091739177703857,0.154614433646202,0.078839890658855,0.044851828366518,-0.126664027571678,-0.023198679089546,-0.003592684632167,0.113923519849777,0.105113118886948,0.038948271423578,0.010159385390580,-0.050619378685951) * MODEL1_texOff(vec2(0,1));
res += mat4(0.042038891464472,0.176474153995514,0.011717475950718,-0.133099511265755,0.095187082886696,0.026844464242458,-0.056050986051559,0.122996754944324,-0.158172786235809,0.063801296055317,-0.040224194526672,-0.023246383294463,-0.059243869036436,-0.040568552911282,0.005811213981360,-0.056681104004383) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.010634021833539,0.471451997756958,0.033142209053040,-0.198149934411049,-0.034766446799040,0.226153373718262,0.085300512611866,0.061125237494707,0.012941746041179,0.178374394774437,-0.014870823360980,0.068693019449711,0.023551277816296,0.154325008392334,-0.092443935573101,0.105015978217125) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.121871069073677,0.368094474077225,0.052315410226583,0.129684507846832,0.189859956502914,0.301800936460495,0.116442248225212,0.053921870887280,0.020509125664830,0.127418726682663,-0.043438646942377,0.009672389365733,0.033327229321003,-0.000997079303488,0.076440103352070,-0.033061049878597) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.004518286790699,0.140055701136589,-0.103694856166840,-0.140230238437653,-0.126163363456726,-0.052141625434160,-0.034840539097786,0.072834238409996,0.035013109445572,0.020570702850819,0.077067792415619,0.098077833652496,-0.166425585746765,0.084064349532127,-0.077165491878986,-0.032894268631935) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.160240560770035,0.006208431906998,0.049175575375557,-0.063541747629642,-0.005262934137136,-0.188949525356293,0.026470493525267,0.008171396329999,-0.048690956085920,-0.094941325485706,0.114178352057934,0.134318426251411,-0.385044842958450,0.128299847245216,-0.041319504380226,0.171079352498055) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.203371748328209,-0.304885894060135,-0.059317361563444,0.128016978502274,0.030075754970312,0.031309854239225,-0.070362843573093,-0.005520602688193,0.038551103323698,-0.071646206080914,-0.145839557051659,-0.206075385212898,-0.469846755266190,0.057198133319616,-0.006041300017387,0.076278075575829) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.036661986261606,-0.141728296875954,-0.218215540051460,-0.739989578723907,0.035854395478964,-0.020065853372216,-0.035297587513924,-0.014404872432351,0.055286664515734,0.025080742314458,-0.013157382607460,0.149208635091782,-0.376372486352921,-0.069022953510284,-0.013651896268129,-0.002579405903816) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.054942030459642,0.235470592975616,0.061380587518215,-0.151405110955238,-0.112484358251095,-0.066389381885529,0.035513464361429,-0.078098796308041,0.162061482667923,-0.037390161305666,0.114396736025810,0.026390150189400,-0.430209755897522,-0.059776701033115,-0.155961707234383,-0.031898036599159) * MODEL2_texOff(vec2(0,0));
res += mat4(0.150233015418053,-0.271669596433640,-0.063622690737247,-0.086445726454258,-0.115323558449745,0.076629668474197,0.164411738514900,-0.039911210536957,0.057238772511482,-0.032316301018000,-0.057784684002399,-0.099410481750965,-0.374162346124649,0.169786214828491,-0.027721932157874,0.084725573658943) * MODEL2_texOff(vec2(0,1));
res += mat4(0.029844462871552,0.016920825466514,-0.104403302073479,0.147714897990227,0.012643843889236,0.158322274684906,-0.067341789603233,0.089490190148354,-0.036592897027731,0.080647192895412,0.043189227581024,-0.027515113353729,-0.262135058641434,0.026015212759376,-0.060951288789511,-0.005490030162036) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.008545108139515,0.037594191730022,-0.005839358083904,0.109506644308567,0.227272331714630,0.190300256013870,0.119746409356594,-0.119243763387203,0.028336774557829,-0.068552173674107,0.120307728648186,-0.048095673322678,-0.352356553077698,0.010992794297636,0.034556768834591,-0.046727973967791) * MODEL2_texOff(vec2(1,0));
res += mat4(0.065388254821301,-0.312319546937943,-0.024103825911880,0.117048852145672,0.158172234892845,0.123111017048359,0.022555999457836,-0.020791471004486,-0.066825933754444,-0.021661795675755,0.131926178932190,-0.119131855666637,-0.241672500967979,0.007977195084095,-0.099584482610226,0.001690046745352) * MODEL2_texOff(vec2(1,1));
res += mat4(0.020283287391067,0.135358110070229,0.025766229256988,-0.179125279188156,0.225604623556137,0.028893269598484,0.091644018888474,-0.222582682967186,-0.074525497853756,-0.025211170315742,0.096280992031097,-0.196864798665047,-0.084815181791782,-0.101487547159195,-0.008568711578846,-0.002479222835973) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.103786349296570,-0.084915272891521,-0.053687714040279,0.225635468959808,0.024678466841578,0.216235384345055,0.166153267025948,-0.056646369397640,-0.173039659857750,-0.117058441042900,-0.046715419739485,-0.266868084669113,-0.333750605583191,-0.018899673596025,0.014723355881870,-0.189088270068169) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.077518895268440,0.015987167134881,-0.101439878344536,0.132079303264618,0.163967788219452,0.137984454631805,0.039880268275738,0.167253524065018,-0.205233246088028,0.029077367857099,0.100551031529903,0.040972590446472,0.022620696574450,-0.365426063537598,-0.150686085224152,-0.054924145340919) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.116778239607811,-0.114280626177788,-0.021456005051732,-0.199562296271324,0.306150376796722,0.089926742017269,0.091539405286312,-0.267623633146286,-0.126377165317535,0.120731756091118,-0.074164800345898,-0.607480883598328,0.069217473268509,0.086173400282860,-0.012336417101324,0.313029646873474) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.030438933521509,-0.151188716292381,-0.161874338984489,0.040028091520071,0.408064901828766,0.218155652284622,0.356493204832077,0.102391749620438,-0.289268881082535,-0.051218580454588,0.287512183189392,-0.589666187763214,-0.003612152067944,-0.010169190354645,0.038450468331575,-0.087785735726357) * MODEL3_texOff(vec2(0,0));
res += mat4(0.049490548670292,0.069882847368717,0.236096277832985,0.108765415847301,0.236593067646027,0.138834580779076,0.207584217190742,0.184083819389343,-0.345202356576920,0.153192490339279,0.141851186752319,0.089839197695255,-0.286101967096329,-0.410632103681564,-0.191757082939148,0.127476215362549) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.164366930723190,-0.127893254160881,0.026942450553179,-0.189648300409317,0.271094083786011,-0.115451596677303,0.224710121750832,0.020047098398209,0.034459490329027,0.072131082415581,0.082244880497456,-0.217819586396217,-0.093101471662521,-0.050208482891321,0.054991845041513,0.069014683365822) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.051084451377392,0.055760260671377,0.016110803931952,0.069435574114323,0.317138522863388,0.104778319597244,0.129624649882317,0.298442423343658,0.006168737541884,0.099805042147636,0.086060680449009,-0.192937195301056,-0.040499545633793,-0.121329165995121,-0.179515734314919,0.018041688948870) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.038666602224112,0.139647334814072,0.053892370313406,0.075700223445892,0.237797826528549,-0.049344304949045,0.119684584438801,0.073789447546005,-0.106124781072140,-0.018785748630762,0.122532524168491,0.022777013480663,0.018188659101725,-0.113466717302799,-0.078740023076534,0.014080056920648) * MODEL3_texOff(vec2(1,1));
res += mat4(0.120771192014217,-0.023788332939148,-0.037636633962393,-0.052531424909830,0.064993493258953,0.133228749036789,-0.012624869123101,-0.138108223676682,-0.013822922483087,-0.115767732262611,-0.097412765026093,0.045387491583824,0.151821911334991,0.071086652576923,0.020258758217096,0.002080177655444) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.003412444144487,0.032266788184643,0.042318180203438,-0.153096228837967,-0.099733978509903,0.138843730092049,0.124036505818367,-0.044275838881731,-0.264406263828278,0.152890250086784,0.058214172720909,-0.087493419647217,0.275825858116150,0.058793768286705,-0.025961613282561,0.021317807957530) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.078411050140858,-0.204220667481422,-0.002600659616292,0.088063120841980,-0.003364948788658,0.139728441834450,-0.010424416512251,-0.043049033731222,-0.007485289592296,-0.104858599603176,-0.048058431595564,-0.087189778685570,0.141121238470078,-0.034884799271822,-0.030561922118068,0.009361643344164) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.172761544585228,0.132293760776520,-0.219482690095901,-0.045761879533529,0.082866989076138,0.157830089330673,0.092808775603771,-0.296360641717911,-0.008557085879147,-0.097455739974976,-0.003052640939131,0.001003279583529,0.182244434952736,-0.060596469789743,0.070194832980633,0.022557312622666) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.131759107112885,0.052426151931286,0.070912562310696,-0.035430092364550,-0.024471111595631,-0.068135976791382,0.224877908825874,-0.014600750990212,-0.130464315414429,-0.168627291917801,0.024120563641191,0.123267151415348,0.238474264740944,-0.019768914207816,-0.034323997795582,-0.189260169863701) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.124487780034542,-0.158052280545235,-0.124921515583992,-0.051741328090429,-0.046052388846874,-0.093279749155045,0.142319172620773,0.186347886919975,0.193169340491295,-0.189614221453667,-0.090400166809559,-0.084746167063713,0.114035919308662,0.133271813392639,-0.079423524439335,-0.089941263198853) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.000686809886247,-0.047123204916716,0.036039561033249,0.164416223764420,-0.011767111718655,0.196703150868416,0.205231010913849,-0.345340400934219,0.096271716058254,0.022960804402828,0.002045023487881,0.012639156542718,0.175483211874962,-0.126327127218246,-0.007804029155523,-0.127098545432091) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.061631914228201,0.219231411814690,0.105623558163643,-0.054807510226965,0.015611202456057,-0.272018641233444,0.027880085632205,-0.232446804642677,0.057825367897749,0.077394172549248,0.093223996460438,-0.152112081646919,0.045937489718199,-0.245200723409653,-0.164127811789513,-0.146751925349236) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.045743305236101,-0.206172868609428,-0.073192588984966,-0.001949155586772,0.140208587050438,-0.187590345740318,-0.050537958741188,0.136008247733116,0.053723976016045,-0.070769697427750,-0.051680944859982,-0.025022707879543,0.149546578526497,0.001202306011692,0.019753117114305,0.015687376260757) * MODEL4_texOff(vec2(1,1));
res += mat4(0.003214450320229,0.035724770277739,0.013955056667328,-0.035425577312708,-0.031374935060740,-0.094367362558842,-0.025176374241710,0.065639369189739,-0.248755976557732,-0.164629235863686,-0.101170785725117,0.020140076056123,-0.157622352242470,-0.137650743126869,0.088033780455589,-0.149829089641571) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.070623576641083,-0.095213145017624,-0.057980917394161,-0.074730627238750,0.019970156252384,0.102258101105690,-0.110182635486126,-0.095972768962383,0.087060973048210,-0.098350472748280,0.024383665993810,-0.153744310140610,-0.044158056378365,0.211394906044006,-0.111805878579617,0.229114860296249) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.030511008575559,-0.020297771319747,-0.024653507396579,0.060529869049788,-0.065529145300388,0.007215620949864,0.070014961063862,0.033715426921844,0.058727264404297,0.091911338269711,0.152131140232086,0.022434685379267,0.149757996201515,-0.138388350605965,0.072611249983311,-0.019428955391049) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.031073333695531,-0.067436248064041,0.049147423356771,0.027664665132761,0.050450440496206,0.030504321679473,0.001527666812763,-0.155092120170593,0.006854063365608,0.037311479449272,-0.009143801406026,-0.052723124623299,0.038143839687109,0.126043528318405,0.030640916898847,0.107506230473518) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.040641769766808,-0.344311982393265,-0.249809980392456,-0.042269513010979,-0.103648737072945,-0.147452503442764,0.001741285319440,0.145820513367653,0.143213152885437,0.143787205219269,-0.117245137691498,-0.139698579907417,-0.235823199152946,-0.055972576141357,0.192539796233177,0.320195078849792) * MODEL5_texOff(vec2(0,0));
res += mat4(0.014741168357432,-0.072252407670021,-0.010181073099375,0.040419720113277,0.004609185270965,0.221086144447327,0.162962779402733,0.050887949764729,-0.046233557164669,0.381380885839462,0.219657391309738,-0.035377915948629,0.098738141357899,-0.113614216446877,-0.055650036782026,-0.055312987416983) * MODEL5_texOff(vec2(0,1));
res += mat4(0.001730243675411,0.123652338981628,-0.050981260836124,-0.004928989335895,0.029766688123345,-0.024672841653228,-0.342159241437912,-0.079314216971397,-0.040679778903723,-0.198807060718536,-0.032716207206249,0.012816899456084,0.059051565825939,-0.002486950717866,-0.018787804991007,-0.020319981500506) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.030355853959918,0.125804096460342,-0.050280272960663,-0.077447712421417,-0.048614565283060,-0.160459101200104,0.257128506898880,0.184027701616287,-0.137839376926422,0.094947017729282,0.106759145855904,0.150389432907104,0.174733206629753,-0.204917848110199,0.059913463890553,0.087775573134422) * MODEL5_texOff(vec2(1,0));
res += mat4(0.080485753715038,-0.016979737207294,0.019751671701670,0.089833267033100,0.032239772379398,-0.197955653071404,0.051166903227568,0.075915232300758,0.028195753693581,-0.175544232130051,0.012385567650199,-0.077539518475533,0.062321405857801,0.112938791513443,-0.012717244215310,-0.195144131779671) * MODEL5_texOff(vec2(1,1));
res += mat4(0.100790157914162,-0.033170521259308,0.122810445725918,-0.021115941926837,0.249269336462021,-0.018159801140428,0.019241979345679,-0.001409596530721,0.025929279625416,-0.159434333443642,-0.242608577013016,-0.176031306385994,0.152597531676292,0.139445692300797,-0.001594961271621,0.172665715217590) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.236785829067230,0.194475486874580,0.067760966718197,0.054982736706734,0.065369524061680,-0.130820304155350,0.136413991451263,-0.015889395028353,-0.050140481442213,0.062537536025047,0.147904604673386,0.096753582358360,0.183195203542709,0.109505146741867,0.052389863878489,0.079664148390293) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.127172708511353,0.190770998597145,0.117005668580532,0.134083509445190,-0.152435302734375,0.032485518604517,-0.037320885807276,-0.001782267238013,0.050902917981148,-0.271726608276367,-0.097968272864819,0.118751205503941,-0.127891942858696,-0.065326973795891,-0.049913007766008,0.121714964509010) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.071206174790859,-0.050735127180815,-0.008224397897720,-0.063789948821068,-0.098539166152477,-0.225437715649605,-0.140850052237511,0.095925487577915,-0.010707276873291,-0.101531401276588,-0.047594983130693,-0.127483427524567,-0.107578977942467,-0.063436463475227,-0.214024364948273,-0.109349094331264) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.054817475378513,-0.021965339779854,0.116690069437027,0.040093246847391,0.000944396422710,-0.160634502768517,0.046328857541084,-0.122860155999660,-0.006428384222090,-0.080861277878284,0.016729004681110,0.056097805500031,0.081668823957443,-0.090545296669006,-0.011166744865477,-0.134039744734764) * MODEL6_texOff(vec2(0,0));
res += mat4(0.091172836720943,-0.080901026725769,0.030052678659558,0.123428583145142,0.077843777835369,-0.006767299491912,0.060361687093973,-0.079617656767368,0.080640166997910,-0.094095662236214,-0.063848540186882,0.113393500447273,0.073242455720901,-0.112155131995678,0.214839175343513,-0.097774036228657) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.028764249756932,0.030878053978086,-0.045961953699589,-0.066517241299152,-0.126037582755089,-0.330580174922943,-0.009449511766434,-0.001089398516342,0.012563232332468,-0.029368605464697,-0.015341600403190,0.044807814061642,-0.057499513030052,-0.006665931548923,0.159098342061043,0.208801552653313) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.035555027425289,-0.456244945526123,0.015750454738736,0.056407917290926,-0.075726963579655,-0.143948510289192,-0.464466899633408,0.189923822879791,0.035893477499485,0.040475785732269,-0.011757356114686,0.052999518811703,-0.097168497741222,0.002951782895252,-0.058567471802235,0.013548791408539) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.020391846075654,-0.346648812294006,-0.134550377726555,-0.138029009103775,0.050634909421206,-0.029997760429978,0.056383486837149,0.044246274977922,0.005119787063450,-0.002884910209104,0.018497407436371,0.011787183582783,0.088123656809330,0.086711451411247,0.054671138525009,0.025640757754445) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.021662598475814,0.005890206433833,-0.122328922152519,0.007594355847687) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 2_4

vec4 hook()
{
vec4 res = vec4(0.068365000188351,0.146815732121468,-0.144790321588516,0.141315102577209);
res += mat4(0.082300975918770,0.030298275873065,-0.206848040223122,-0.026309741660953,-0.042524609714746,-0.089217111468315,-0.383690059185028,0.048142071813345,0.097429141402245,-0.079201824963093,0.125989437103271,-0.073307029902935,0.184700027108192,0.007538983132690,0.000133770954562,0.022870320826769) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.340663880109787,0.131765276193619,-0.171654865145683,-0.022616518661380,-0.052326802164316,-0.040208812803030,-0.091234035789967,0.014881386421621,0.045525103807449,-0.188709914684296,-0.100276142358780,0.083831846714020,0.311724245548248,-0.039746437221766,-0.029618548229337,0.530642271041870) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.264952778816223,0.175261572003365,-0.118267312645912,-0.032201655209064,-0.062839478254318,0.074265979230404,0.032547753304243,0.019052319228649,-0.065553180873394,-0.024723479524255,0.022805573418736,0.191488906741142,-0.001163273002021,0.052827127277851,0.035814326256514,0.047475889325142) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.145376488566399,0.162090778350830,-0.197214007377625,0.037702783942223,0.178902089595795,-0.066387884318829,-0.023470293730497,0.058475036174059,-0.005863687954843,-0.019326062873006,0.088676504790783,-0.011522870510817,-0.151089355349541,-0.063527248799801,-0.069974429905415,0.155946537852287) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.024326002225280,-0.114807188510895,0.058233171701431,0.013941699638963,-0.152071416378021,0.084854513406754,-0.056026034057140,-0.003842534031719,-0.002416866831481,-0.133624255657196,-0.067229211330414,-0.012633147649467,-0.469342231750488,0.000390882370993,-0.002716574585065,-0.598810970783234) * MODEL1_texOff(vec2(0,0));
res += mat4(0.008501989766955,0.026323456317186,-0.111819081008434,0.026809750124812,0.007285031955689,0.028706301003695,-0.121840924024582,-0.004112803842872,0.013357248157263,-0.098921969532967,0.050917517393827,0.023198047652841,0.033197179436684,0.079093180596828,0.046110738068819,-0.070840463042259) * MODEL1_texOff(vec2(0,1));
res += mat4(0.036532662808895,0.182768836617470,0.037986833602190,0.006051396019757,0.017845397815108,-0.353370368480682,-0.166339457035065,-0.014157419092953,0.019030986353755,-0.056411813944578,0.013907440938056,-0.022575844079256,0.071776323020458,-0.078886203467846,-0.040314182639122,0.025884650647640) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.152375295758247,-0.023831581696868,0.199046224355698,0.023652212694287,-0.120096720755100,-0.122845083475113,-0.034680746495724,0.025519667193294,-0.028855636715889,0.075989812612534,0.000129648047732,-0.028405601158738,0.073560841381550,-0.011891669593751,-0.013796943239868,0.062972143292427) * MODEL1_texOff(vec2(1,0));
res += mat4(0.000416030728957,-0.062424633651972,0.004856237210333,0.031851541250944,0.008202374912798,-0.215455681085587,-0.071988612413406,-0.023039214313030,-0.107495248317719,-0.213680550456047,0.007827682420611,-0.022492716088891,-0.047575868666172,0.161651000380516,0.036027543246746,-0.058965992182493) * MODEL1_texOff(vec2(1,1));
res += mat4(0.028167925775051,0.044415447860956,-0.018893955275416,-0.043804723769426,-0.022485163062811,0.048025365918875,0.113828837871552,-0.076141998171806,0.131163686513901,0.065055564045906,0.024719262495637,-0.027212625369430,-0.045016791671515,0.115310214459896,0.135481879115105,-0.032941676676273) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.073815636336803,0.192312434315681,-0.327446460723877,-0.028768334537745,0.097938701510429,-0.098190791904926,0.019351683557034,-0.023219125345349,0.114554040133953,0.161470681428909,-0.066067978739738,-0.007066558580846,-0.066921673715115,0.237456440925598,0.067120514810085,0.004461500793695) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.031287215650082,-0.093582205474377,0.148815378546715,0.027234388515353,-0.003991207107902,0.205579832196236,0.133791998028755,-0.046996902674437,0.130359664559364,0.095261499285698,0.107833109796047,-0.016616893932223,-0.072939045727253,0.153229638934135,0.054861117154360,0.025756452232599) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.125296697020531,-0.117133893072605,-0.045284662395716,-0.274440795183182,-0.303346216678619,-0.044855017215014,-0.014528122730553,-0.054722767323256,0.096274264156818,-0.105863645672798,0.012491104193032,-0.026161488145590,-0.017188448458910,0.048381265252829,-0.095610156655312,-0.017182148993015) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.266084283590317,-0.133374094963074,-0.196871861815453,-0.030568739399314,-0.097764097154140,-0.148280531167984,-0.195174798369408,-0.106081485748291,0.221947908401489,-0.012692346237600,-0.145558983087540,-0.078180253505707,0.052071403712034,0.097829110920429,-0.007515455596149,0.001551190740429) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.028040133416653,-0.002700418699533,0.182037875056267,-0.033521644771099,-0.012711774557829,-0.063581936061382,-0.109176605939865,0.017180137336254,0.155049577355385,0.077948048710823,0.008433550596237,-0.057123329490423,-0.054795373231173,0.176078721880913,-0.168488487601280,0.022702945396304) * MODEL2_texOff(vec2(0,1));
res += mat4(0.076301805675030,0.112352043390274,0.019359314814210,-0.084896683692932,-0.119833447039127,0.142792835831642,0.040607102215290,-0.105014659464359,0.018449584022164,-0.038454782217741,0.045468125492334,-0.028923189267516,-0.051657963544130,0.176009669899940,-0.054333817213774,-0.002786622382700) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.009516954421997,0.013392928056419,-0.023883020505309,0.002247483702376,-0.189673438668251,-0.100985631346703,-0.046886332333088,-0.084559075534344,0.154250398278236,0.034686479717493,-0.057065930217505,-0.072665095329285,-0.005293205380440,0.301370799541473,-0.072442188858986,0.000990622444078) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.007694311905652,0.128889098763466,0.104846589267254,0.000174565211637,0.195645779371262,-0.042218096554279,-0.049777463078499,-0.043467842042446,0.079093456268311,0.170671284198761,-0.007262783125043,-0.007777173537761,0.040872916579247,0.238689914345741,0.109498970210552,-0.002850274089724) * MODEL2_texOff(vec2(1,1));
res += mat4(0.187713295221329,0.100463345646858,-0.129415586590767,-0.026914313435555,0.087550200521946,0.173069804906845,0.162642434239388,-0.032784670591354,0.108700342476368,0.000828493270092,-0.140551939606667,0.014635371975601,0.125602468848228,0.085288584232330,-0.013026902452111,0.076712727546692) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.198006659746170,-0.001760334358551,0.173451662063599,0.128740772604942,-0.090210303664207,0.331778913736343,0.181526333093643,-0.089698217809200,0.041983217000961,-0.014808338135481,0.099143527448177,0.022290490567684,-0.040717534720898,-0.025684611871839,0.023023759946227,0.051850721240044) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.107254311442375,0.114950515329838,0.092078208923340,0.112742930650711,-0.100545041263103,0.157124683260918,-0.304578155279160,-0.047638971358538,-0.009879209101200,0.003111331490800,-0.144153326749802,-0.018616998568177,0.154118180274963,0.093167223036289,-0.183281958103180,0.015554733574390) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.146642372012138,-0.008647636510432,0.134839564561844,-0.047792401164770,0.003025174606591,0.023014232516289,0.366218060255051,-0.044870018959045,0.135892137885094,0.121664181351662,-0.085080347955227,-0.001969093689695,0.105056047439575,-0.051728107035160,-0.065298087894917,0.069071978330612) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.207889005541801,0.040423408150673,0.064095020294189,0.311579555273056,-0.123514913022518,0.035612329840660,0.388813436031342,-0.056454259902239,-0.247520744800568,-0.221398741006851,0.207739025354385,0.007903538644314,0.085940770804882,0.013676278293133,0.003594461362809,0.009447219781578) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.136408790946007,-0.091583721339703,0.061071917414665,0.130626961588860,-0.017236983403563,-0.198331356048584,0.014110514894128,-0.024163523688912,-0.308168560266495,0.018696757033467,0.014740820974112,-0.080850511789322,0.152060404419899,0.147131517529488,0.151310399174690,-0.008946586400270) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.028421793133020,-0.024958180263638,0.067993141710758,-0.015617233701050,0.009890275076032,0.034894030541182,0.256689548492432,-0.023758895695210,0.005881082732230,0.100617855787277,0.010774729773402,0.012685023248196,0.144445970654488,0.049427289515734,0.068175457417965,0.010224220342934) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.057071179151535,-0.092452265322208,0.155944347381592,0.113581389188766,-0.100169852375984,0.000365123967640,0.197640001773834,0.004634350072592,-0.026727953925729,-0.059983052313328,0.081370443105698,0.044678110629320,0.101945571601391,0.150816291570663,0.009027299471200,0.006457706913352) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.157014816999435,0.019127320498228,-0.034271690994501,-0.006809419952333,0.064968973398209,0.114060319960117,0.100850179791451,-0.014696073718369,-0.031809721142054,-0.004016351886094,-0.156024232506752,0.026658058166504,0.012614758685231,0.027794983237982,-0.017779670655727,-0.006943856365979) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.004284580238163,-0.069424122571945,0.090118907392025,-0.020772453397512,0.060731478035450,-0.082730442285538,-0.069876410067081,-0.062770463526249,-0.222936436533928,-0.126278206706047,0.121205814182758,0.022337067872286,0.074877746403217,-0.323669403791428,-0.092925995588303,-0.003471314674243) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.046180907636881,0.029473997652531,-0.100810140371323,-0.039468433707952,0.028061933815479,0.008264995180070,0.082639478147030,-0.035612143576145,-0.120131492614746,0.085132434964180,-0.149640098214149,0.038025129586458,0.077801562845707,-0.322204560041428,0.123197838664055,-0.003917028196156) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.046904750168324,0.027042999863625,-0.141424790024757,-0.105726391077042,0.007578674238175,0.212387606501579,0.104088217020035,0.025253236293793,-0.084877096116543,0.046580597758293,-0.062065977603197,-0.046405203640461,0.073100320994854,-0.201019838452339,0.019798057153821,0.015123362652957) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.132805317640305,-0.002930570859462,0.318275094032288,-0.181170105934143,0.073591299355030,-0.094109132885933,-0.022809863090515,-0.034324210137129,0.244849875569344,-0.007499424740672,0.229190811514854,0.125490754842758,-0.088155090808868,-0.089772880077362,-0.007947546429932,-0.028227131813765) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.022255359217525,0.109787866473198,-0.043741635978222,0.561379611492157,-0.167388319969177,-0.038978025317192,-0.048298176378012,0.061004951596260,0.501214027404785,0.015545829199255,-0.436624258756638,0.072669409215450,-0.042987868189812,-0.208410724997520,-0.083163328468800,0.002731982618570) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.108588010072708,0.119747012853622,0.036923386156559,-0.263939708471298,-0.089057728648186,0.162582397460938,-0.085933327674866,0.073827177286148,-0.261979848146439,0.059022299945354,-0.233603566884995,-0.005193705204874,0.061029504984617,-0.161139115691185,0.163910537958145,0.009969658218324) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.104313328862190,0.048197031021118,0.101794436573982,0.008281327784061,0.011066982522607,-0.033076446503401,0.184805080294609,-0.003412445774302,-0.153965443372726,0.086904041469097,-0.032864298671484,0.023749850690365,0.061579704284668,-0.372178584337234,0.111790232360363,-0.004661064129323) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.134121268987656,0.171502456068993,-0.139086171984673,0.072352908551693,-0.038944907486439,-0.155687794089317,0.009894844144583,0.067008234560490,-0.208291366696358,-0.226725950837135,0.230473324656487,0.059663239866495,0.032270640134811,-0.630077540874481,0.050144132226706,0.011151945218444) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.063686847686768,0.012954749166965,-0.090911656618118,-0.156288579106331,-0.148890435695648,0.000805829302408,-0.173490300774574,0.229207053780556,-0.008260007016361,-0.154960289597511,0.019382465630770,0.027722710743546,0.142823323607445,-0.576215565204620,0.211772501468658,0.041656542569399) * MODEL4_texOff(vec2(1,1));
res += mat4(0.068811692297459,-0.065930709242821,-0.127387300133705,-0.022547315806150,0.051664698868990,-0.133892163634300,-0.024321543052793,-0.038229167461395,0.004730945918709,0.099746815860271,0.152278393507004,-0.097254127264023,-0.030936021357775,0.292379528284073,0.055205430835485,0.003211956936866) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.021731307730079,0.070044249296188,0.027581393718719,0.022007822990417,0.045563776046038,0.104179620742798,0.094510376453400,-0.116390414535999,0.071833729743958,-0.197207301855087,-0.110450260341167,0.074155226349831,-0.091745451092720,-0.043852459639311,0.161807641386986,-0.072391204535961) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.028029501438141,0.145071536302567,-0.519532740116119,0.001286610378884,-0.055265314877033,0.045896258205175,-0.007037982344627,-0.025505917146802,-0.165002629160881,-0.007023845333606,-0.164484366774559,0.119478136301041,-0.102536901831627,0.062102116644382,-0.115098275244236,-0.097298651933670) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.034642074257135,-0.045562621206045,-0.187361091375351,0.034489851444960,-0.201320976018906,-0.030388830229640,0.092598706483841,-0.055639684200287,0.037648424506187,-0.219132140278816,0.238315016031265,0.027538990601897,0.144571885466576,0.093856737017632,0.082189828157425,0.032739225775003) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.004601264838129,-0.003736459184438,-0.005119486246258,0.145010456442833,-0.329962611198425,-0.127129450440407,0.166229858994484,-0.058770786970854,-0.109915979206562,-0.259665817022324,0.020809402689338,0.081921130418777,-0.211451396346092,-0.161323264241219,0.168650656938553,-0.171835377812386) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.040926028043032,-0.054250415414572,-0.271539330482483,0.011031846515834,-0.078231424093246,-0.357739776372910,-0.079266019165516,0.041281908750534,-0.018755124881864,-0.090024374425411,-0.074621878564358,0.100340500473976,-0.141389414668083,-0.103020906448364,0.314098298549652,-0.336898714303970) * MODEL5_texOff(vec2(0,1));
res += mat4(0.055424921214581,0.198038518428802,0.117850534617901,0.053137108683586,-0.097710743546486,-0.062613673508167,0.124890223145485,-0.066043138504028,0.019676147028804,-0.122157543897629,0.145845472812653,0.024721369147301,0.132160097360611,-0.013119151815772,-0.052632756531239,-0.036174271255732) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.007845158688724,0.050097379833460,0.059685569256544,0.028060618788004,-0.022057348862290,-0.317663282155991,0.035968642681837,-0.043810214847326,0.036656487733126,0.114363804459572,-0.065325558185577,0.093485958874226,0.067301221191883,0.006851329933852,-0.074131295084953,0.045559372752905) * MODEL5_texOff(vec2(1,0));
res += mat4(0.031793951988220,-0.074733883142471,-0.114111997187138,-0.020530441775918,0.060558054596186,-0.267298847436905,0.005632536951452,-0.035157959908247,0.022606140002608,-0.054449293762445,-0.160622730851173,-0.003871748922393,-0.120952747762203,-0.115473292768002,-0.077639974653721,-0.127067878842354) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.178781077265739,0.061924871057272,0.038621798157692,-0.030014749616385,-0.035307936370373,-0.093308642506599,-0.070011407136917,0.017637703567743,-0.095372617244720,-0.054450653493404,-0.006741091609001,-0.007563040591776,-0.192363873124123,0.006557547021657,0.133587151765823,-0.079664289951324) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.312413990497589,0.178214892745018,0.100407876074314,-0.003335439134389,-0.073170982301235,-0.214772850275040,-0.008727760054171,0.019606813788414,-0.444332391023636,-0.038551431149244,0.035778474062681,-0.033891383558512,-0.053928099572659,0.131412789225578,0.045536886900663,-0.063235893845558) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.216201633214951,0.016196154057980,-0.049560308456421,-0.001229014131241,-0.079989947378635,-0.011887206695974,0.022953186184168,0.001553320442326,-0.127276510000229,0.087062828242779,-0.249501481652260,-0.003122605383396,0.068274118006229,-0.049165640026331,0.017816403880715,-0.000585735542700) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.260932058095932,-0.005075372289866,0.003231767797843,-0.020001970231533,0.026286350563169,0.022794777527452,0.205106273293495,-0.010049038566649,-0.113672271370888,-0.149243265390396,0.042798269540071,0.018984295427799,-0.108357124030590,0.024176675826311,-0.044882990419865,-0.016856174916029) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.095557153224945,-0.060791768133640,0.161284178495407,-0.028165468946099,0.173137843608856,0.156234115362167,-0.113051518797874,0.116976790130138,-0.520937919616699,-0.286201328039169,0.021185759454966,0.128865301609039,-0.063873410224915,0.113124139606953,-0.455981552600861,-0.046594355255365) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.110411353409290,0.118569411337376,-0.012667511589825,0.002770161256194,0.044433176517487,0.137550055980682,-0.158963948488235,0.074189096689224,-0.057197559624910,-0.468621313571930,0.020427083596587,0.068941779434681,0.048380795866251,-0.010603182949126,-0.098190553486347,0.026992470026016) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.157769560813904,-0.034342590719461,-0.020108798518777,-0.019996328279376,0.069811023771763,0.104501925408840,0.034003108739853,0.043242260813713,-0.046086300164461,-0.014148245565593,-0.020266482606530,0.027679977938533,-0.089623197913170,-0.071666002273560,0.170723289251328,-0.011383720673621) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.013205443508923,0.010566093958914,-0.002401069039479,-0.003034214721993,0.725056350231171,-0.124825529754162,-0.019862668588758,0.080758593976498,-0.149370700120926,-0.114793621003628,-0.025187453255057,0.071231074631214,-0.091686211526394,-0.181549489498138,-0.135131925344467,-0.051680035889149) * MODEL6_texOff(vec2(1,0));
res += mat4(0.275612324476242,-0.103886909782887,0.002857796614990,0.054146241396666,-0.018809655681252,-0.173039242625237,-0.229931920766830,0.038916397839785,0.044445607811213,-0.142168194055557,0.025671711191535,0.042930494993925,0.092151448130608,-0.143016293644905,0.023827183991671,-0.044158298522234) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.170814186334610,0.084271334111691,0.217131108045578,0.814260780811310) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 2_5

vec4 hook()
{
vec4 res = vec4(0.004492592066526,0.159129858016968,0.187320590019226,0.166387110948563);
res += mat4(-0.015290277078748,-0.017099725082517,0.088560447096825,0.013209738768637,-0.043023552745581,0.042275469750166,0.076323695480824,-0.027560608461499,0.002551411278546,-0.032395083457232,-0.065181151032448,-0.068462140858173,0.006537973415107,-0.035910539329052,0.072281256318092,-0.025555880740285) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.163786754012108,0.055612631142139,-0.003679149318486,0.150162547826767,0.126061305403709,0.098467230796814,-0.107861064374447,-0.134631887078285,-0.112149529159069,0.149136453866959,-0.045003205537796,-0.015831662341952,0.161521956324577,0.021345511078835,-0.188741713762283,-0.508146345615387) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.139365926384926,-0.073483280837536,0.061600994318724,0.200360849499702,0.142234250903130,0.055780291557312,-0.106910184025764,0.029573772102594,0.139667645096779,-0.157985448837280,-0.007492010947317,0.534727394580841,-0.026689631864429,0.037311110645533,-0.122244380414486,0.195132240653038) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.088316075503826,0.073157615959644,0.001912141684443,0.049849651753902,-0.215128511190414,0.100249916315079,0.113493524491787,0.043540176004171,-0.065373994410038,0.017774265259504,-0.140838652849197,0.021904667839408,0.017158424481750,-0.088929958641529,0.127980783581734,-0.072482846677303) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.012589445337653,0.228373885154724,-0.053094889968634,0.119800269603729,-0.299893617630005,-0.066710025072098,0.055870678275824,-0.006442690268159,-0.098594501614571,0.005986440461129,0.084489464759827,0.055959604680538,0.277302622795105,-0.650357902050018,-0.479417592287064,0.359535574913025) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.128892257809639,-0.028594298288226,-0.135625228285789,0.052778590470552,-0.046627420932055,0.041084233671427,-0.002843875205144,-0.061376355588436,-0.362453043460846,0.362102329730988,0.058457076549530,0.053933799266815,-0.040502481162548,-0.018562061712146,-0.073318168520927,-0.189341455698013) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.045581884682178,-0.009847906418145,0.060487549751997,-0.016688281670213,0.017547080293298,-0.061831552535295,-0.056059230118990,0.019894929602742,-0.058176930993795,-0.058214657008648,0.053114417940378,0.001679011387751,0.023065492510796,0.021074444055557,0.072217658162117,-0.073498778045177) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.076331950724125,-0.120360970497131,-0.104625403881073,-0.005834476556629,0.145544081926346,0.083049170672894,-0.064695447683334,0.046119309961796,-0.087218135595322,-0.023307429626584,0.013425344601274,-0.050522748380899,-0.084728404879570,0.194553449749947,0.022066473960876,-0.053221233189106) * MODEL1_texOff(vec2(1,0));
res += mat4(0.031936947256327,-0.077124655246735,-0.098083592951298,-0.172781929373741,-0.045614901930094,0.058708731085062,-0.027236161753535,0.095567770302296,0.051738362759352,-0.210735663771629,0.026657015085220,0.052067786455154,-0.007045771460980,-0.161165967583656,-0.079212680459023,0.058816403150558) * MODEL1_texOff(vec2(1,1));
res += mat4(0.007867430336773,-0.033793639391661,-0.164473965764046,0.040894981473684,0.073462776839733,0.022235374897718,-0.053493719547987,-0.043778959661722,-0.034313619136810,0.139001578092575,0.138714522123337,-0.054397042840719,-0.005188474897295,-0.000182738061994,0.009124449454248,-0.029265105724335) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.053779769688845,-0.102648854255676,0.057880882173777,0.097291007637978,0.034064639359713,0.009057745337486,0.012410817667842,-0.219529837369919,-0.142669156193733,0.112534567713737,0.117080546915531,-0.062537573277950,0.085010170936584,-0.042402815073729,0.007390439510345,-0.200027927756310) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.054529290646315,-0.021870533004403,-0.019655406475067,0.036020804196596,0.055963408201933,-0.033105608075857,-0.023481026291847,-0.135472550988197,-0.211478769779205,-0.027815308421850,-0.000366779160686,0.027771349996328,0.065322332084179,0.011717079207301,-0.109513454139233,-0.096083670854568) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.164400443434715,-0.028877608478069,-0.388682395219803,0.216540679335594,0.125448986887932,-0.169448316097260,-0.077068857848644,-0.073844201862812,-0.008834871463478,0.069251298904419,0.146439909934998,0.020597068592906,-0.031245412304997,0.019195236265659,-0.146723538637161,-0.033726383000612) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.121223822236061,0.064911887049675,-0.021308531984687,-0.071990862488747,-0.123979613184929,-0.010483147576451,0.069765940308571,0.155090227723122,-0.130266323685646,0.044564142823219,0.021304458379745,0.089940153062344,0.003990462049842,-0.000610876770224,-0.371432900428772,-0.066469669342041) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.153445437550545,0.031398367136717,-0.164026886224747,0.104605376720428,-0.049014292657375,-0.006961821112782,-0.000235425133724,-0.043323546648026,-0.026854906231165,0.058391716331244,0.039698153734207,0.177810817956924,-0.074481293559074,0.069882586598396,-0.199257776141167,-0.068630568683147) * MODEL2_texOff(vec2(0,1));
res += mat4(0.009359854273498,-0.011060764081776,-0.108081214129925,0.109958253800869,0.207481473684311,0.009371311403811,-0.200268134474754,0.159169763326645,-0.039964936673641,0.012154658325016,-0.046024534851313,0.022958209738135,-0.039210397750139,-0.070775523781776,0.000909210124519,-0.025940710678697) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.067258112132549,-0.012910142540932,-0.029338879510760,0.044873114675283,0.141197785735130,-0.009230998344719,-0.252035766839981,0.005599340423942,-0.075256057083607,0.270768254995346,-0.016999946907163,0.085764802992344,-0.035074222832918,-0.185224503278732,-0.047702979296446,-0.062030911445618) * MODEL2_texOff(vec2(1,0));
res += mat4(0.068711280822754,-0.001433961559087,0.056179933249950,-0.059925135225058,0.071124993264675,-0.084723867475986,-0.053584370762110,0.100493766367435,-0.112812101840973,0.034746598452330,0.094226531684399,0.007676680572331,0.061411354690790,-0.136766463518143,-0.103029303252697,-0.091952286660671) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.221382781863213,0.051543869078159,-0.005610268097371,-0.040336076170206,-0.062286619096994,0.005586147308350,0.083947420120239,-0.047299876809120,-0.153860926628113,-0.002539636800066,0.000318356178468,-0.081989072263241,-0.104519218206406,0.011112461797893,-0.020081114023924,-0.009016863070428) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.021181475371122,0.135987952351570,-0.180290818214417,-0.246122196316719,0.100074663758278,-0.009558415040374,0.034296322613955,-0.160371124744415,0.076912932097912,0.109640084207058,-0.116444647312164,0.033586073666811,-0.117988280951977,0.071909114718437,0.154038310050964,0.159239396452904) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.064289316534996,0.022829281166196,0.103853948414326,0.064426973462105,0.096789091825485,0.056966174393892,0.006790930870920,-0.229031458497047,-0.060161437839270,0.037678044289351,-0.258199304342270,-0.101707361638546,-0.077138267457485,-0.171735078096390,0.167338564991951,0.155701294541359) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.031746685504913,-0.125345617532730,-0.136771306395531,-0.061194363981485,0.012353515252471,-0.025949560105801,-0.008718098513782,0.108698271214962,-0.162915423512459,0.003659007372335,-0.040044873952866,-0.052523970603943,-0.072964593768120,-0.043690770864487,0.118950106203556,-0.019137308001518) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.025078264996409,-0.225853100419044,0.304315835237503,0.139029130339622,0.194470733404160,0.113143853843212,-0.076418064534664,-0.138765960931778,0.082897596061230,-0.029792796820402,-0.113404504954815,-0.246236979961395,-0.210768207907677,-0.093695588409901,0.052454046905041,-0.191934973001480) * MODEL3_texOff(vec2(0,0));
res += mat4(0.015140757896006,-0.065261788666248,0.164327263832092,-0.029638659209013,0.155211552977562,0.169798716902733,-0.109281688928604,-0.151293203234673,0.019289506599307,-0.006858081556857,-0.549859046936035,-0.349689930677414,-0.060261733829975,0.048443686217070,0.301460981369019,0.029968965798616) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.058504205197096,-0.114467963576317,-0.042352370917797,-0.006229381076992,0.040553219616413,-0.104269430041313,0.015226222574711,0.052825823426247,0.078335806727409,-0.077693842351437,-0.028564929962158,0.001769495662302,-0.133734330534935,0.043545156717300,0.094286553561687,0.022359132766724) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.126827701926231,0.017752304673195,-0.062441300600767,-0.058539785444736,-0.006315060425550,0.066292397677898,0.154714867472649,-0.037412777543068,0.127361357212067,-0.240683823823929,-0.054519880563021,-0.076522879302502,0.001157492049970,0.120404459536076,0.201961621642113,-0.014637229032815) * MODEL3_texOff(vec2(1,0));
res += mat4(0.098085753619671,-0.101235285401344,-0.028546893969178,-0.010218292474747,0.012105425819755,-0.047702766954899,0.078041061758995,-0.044016219675541,0.116568565368652,-0.255034625530243,-0.091490693390369,-0.009136063046753,-0.032396823167801,-0.003345190780237,0.140943124890327,-0.070184253156185) * MODEL3_texOff(vec2(1,1));
res += mat4(0.205068036913872,-0.024380913004279,-0.098448403179646,0.027914157137275,-0.046222541481256,0.101120486855507,0.151462361216545,-0.121414847671986,-0.022619618102908,-0.000714075402357,0.002811340615153,0.043540596961975,0.069611437618732,0.009258483536541,0.061901073902845,0.006882284302264) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.116799592971802,-0.118287071585655,0.067105598747730,-0.052147224545479,0.079249568283558,0.223914310336113,-0.050368223339319,-0.096365965902805,-0.128831252455711,-0.132946699857712,0.075727894902229,0.149742558598518,0.086248636245728,0.055914968252182,0.045250043272972,-0.031992468982935) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.077385358512402,0.093088120222092,-0.043549094349146,0.055160962045193,-0.088757343590260,0.161521956324577,-0.185286030173302,-0.031422842293978,-0.155845269560814,-0.059924352914095,-0.136862620711327,-0.051553085446358,-0.106301389634609,0.030373463407159,0.126619234681129,0.043276395648718) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.026740076020360,-0.039826314896345,-0.132212117314339,-0.017807602882385,-0.089814573526382,-0.065602079033852,0.044368904083967,0.080839134752750,-0.106269344687462,-0.028740819543600,-0.012852605432272,0.083228118717670,0.103629238903522,0.036973137408495,0.046997770667076,0.030472191050649) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.260402530431747,-0.049061104655266,0.196921512484550,-0.279547959566116,0.239532455801964,0.061644677072763,-0.050400428473949,0.183782711625099,-0.114228822290897,0.298958748579025,0.330265849828720,0.422559976577759,-0.004080174025148,0.033666953444481,0.090457305312157,-0.020524138584733) * MODEL4_texOff(vec2(0,0));
res += mat4(0.039924576878548,0.025456665083766,-0.229344934225082,0.079128943383694,0.671247482299805,0.011221275664866,-0.062673814594746,0.436824530363083,-0.052699845284224,-0.070493586361408,-0.170336619019508,-0.004906958900392,-0.105980612337589,0.053809672594070,0.073490984737873,0.139513596892357) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.097564592957497,0.152073562145233,0.001463125227019,-0.009830921888351,-0.003820750862360,-0.056085873395205,0.005470485426486,-0.036341514438391,0.033411856740713,-0.016052907332778,-0.097354441881180,-0.062095586210489,0.053991764783859,0.044517505913973,-0.003447115188465,0.049029681831598) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.084070265293121,0.251774102449417,-0.128707334399223,-0.013065082021058,0.142197489738464,0.025938265025616,-0.083123140037060,0.275634467601776,-0.005626028403640,-0.218358814716339,-0.331434547901154,0.032949145883322,0.013495083898306,0.245821863412857,0.005786903668195,0.126252949237823) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.034772958606482,-0.037625763565302,-0.109834671020508,0.044383313506842,0.627205431461334,-0.038351550698280,0.007977087981999,1.103707909584045,0.084475025534630,0.056443810462952,-0.052485100924969,0.000774783315137,-0.123232379555702,0.171868950128555,0.047454271465540,0.127701565623283) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.057181403040886,-0.028431938961148,0.055175919085741,0.063011661171913,0.028457013890147,0.001590413390659,-0.042176067829132,-0.085150554776192,-0.104084536433220,-0.207700267434120,0.036721155047417,0.026743756607175,-0.032058302313089,0.028102846816182,-0.040028356015682,-0.056301049888134) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.033356714993715,-0.087561473250389,-0.017459275200963,0.081935882568359,0.019997403025627,0.007652687374502,0.080285310745239,-0.180497586727142,0.008877784945071,-0.095988430082798,0.151169955730438,-0.072610504925251,0.002399611985311,0.006973535753787,-0.243659093976021,0.073427163064480) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.064295686781406,-0.111046329140663,-0.073273152112961,0.029225058853626,0.063952304422855,0.084251053631306,0.058955688029528,-0.100931040942669,0.117859549820423,0.070994123816490,-0.006222784053534,-0.159265026450157,-0.012040781788528,-0.130381330847740,-0.111518546938896,0.009239641018212) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.023211661726236,0.101038463413715,-0.131825640797615,-0.032268311828375,0.101382508873940,0.092889457941055,0.149644702672958,-0.058726839721203,0.083735994994640,0.009898907504976,-0.309417724609375,0.054414100944996,-0.006986728403717,0.020190179347992,-0.027794949710369,0.027759805321693) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.078627608716488,-0.188921555876732,0.238939821720123,0.256602942943573,-0.109889537096024,-0.019159222021699,-0.001228969078511,0.232237339019775,0.114236265420914,-0.062070608139038,-0.249613672494888,0.002303611719981,-0.088335186243057,-0.054590821266174,0.103963568806648,-0.099693998694420) * MODEL5_texOff(vec2(0,0));
res += mat4(0.205424785614014,-0.036970574408770,-0.051897853612900,0.038749363273382,0.029835585504770,0.042179986834526,0.026772869750857,-0.086965508759022,-0.010594103485346,-0.194877952337265,0.030336977913976,-0.010445235297084,0.291159749031067,-0.155478656291962,-0.286808639764786,0.151372790336609) * MODEL5_texOff(vec2(0,1));
res += mat4(0.175357520580292,0.016255024820566,-0.001126277958974,-0.049450676888227,-0.081942215561867,0.020880647003651,0.007203496061265,-0.046026065945625,-0.114568404853344,0.022794108837843,-0.012909460812807,-0.081747509539127,0.025345707312226,-0.120283208787441,0.106983125209808,-0.010553678497672) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.114459536969662,0.633498191833496,-0.023477232083678,-0.140097320079803,-0.003361237468198,-0.030109610408545,-0.029422560706735,-0.401121884584427,-0.037576895207167,0.113476604223251,0.074480384588242,-0.069230839610100,-0.120443299412727,0.263468414545059,-0.015174668282270,-0.134734064340591) * MODEL5_texOff(vec2(1,0));
res += mat4(0.110842615365982,0.064144782721996,-0.111802816390991,0.016760416328907,-0.141577214002609,0.045007620006800,0.115018844604492,0.032067768275738,-0.093510814011097,-0.116529271006584,-0.012440558522940,0.051500592380762,-0.028088269755244,0.059874691069126,0.122947163879871,0.102810442447662) * MODEL5_texOff(vec2(1,1));
res += mat4(0.031681969761848,0.062708407640457,-0.015922173857689,0.064084954559803,0.056839879602194,-0.035933934152126,-0.021231204271317,0.073017060756683,0.033409923315048,-0.070267356932163,0.006887037772685,0.067785173654556,0.055502645671368,-0.091421954333782,-0.097213961184025,-0.047821480780840) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.052986387163401,0.054082803428173,-0.107342280447483,0.005675783380866,-0.059698436409235,-0.047973964363337,-0.055567037314177,0.037896007299423,0.060779523104429,-0.077062703669071,-0.237622916698456,-0.355534404516220,0.076606385409832,-0.096423111855984,-0.080148056149483,-0.150548860430717) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.032682355493307,0.010735504329205,-0.076410554349422,-0.000776450207923,0.065574720501900,-0.032361082732677,-0.095716416835785,-0.011772355064750,0.174174353480339,-0.006343942135572,-0.063677534461021,-0.140012964606285,0.204034268856049,0.065444901585579,0.120613023638725,-0.024234050884843) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.156342655420303,0.058642178773880,-0.068437613546848,0.092772170901299,0.169540897011757,-0.000044147374865,-0.085886701941490,-0.001313843647949,0.021627750247717,-0.306031078100204,0.098200030624866,0.109809830784798,0.189730256795883,-0.291676521301270,0.006129558198154,0.112774938344955) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.059331066906452,0.042601335793734,-0.231068789958954,0.016636058688164,0.181323856115341,0.039078079164028,0.346039146184921,0.199896007776260,-0.003745298366994,-0.854675352573395,-0.063152827322483,-0.052419338375330,0.555734097957611,-0.243128195405006,-0.094145625829697,0.302005887031555) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.146120533347130,0.043830476701260,-0.035810597240925,0.054285019636154,0.097773112356663,-0.025596618652344,0.046402722597122,-0.057362005114555,0.093254528939724,-0.160343676805496,0.005126214586198,-0.045704249292612,0.121708445250988,-0.114767894148827,0.150470331311226,-0.284907221794128) * MODEL6_texOff(vec2(0,1));
res += mat4(0.153816118836403,0.045483194291592,-0.086990982294083,0.097620002925396,-0.154790565371513,-0.088216416537762,0.100773803889751,0.050544265657663,-0.003117422806099,-0.231890127062798,0.012648325413465,0.026360852643847,-0.059297431260347,0.121159926056862,-0.126940444111824,-0.023166600614786) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.232260778546333,0.081506885588169,-0.189423292875290,-0.054172314703465,-0.220051273703575,0.465379059314728,0.351452559232712,0.487036585807800,0.035468719899654,-0.418053418397903,-0.014590418897569,-0.009777139872313,-0.067165330052376,0.217129871249199,-0.066957838833332,-0.065969191491604) * MODEL6_texOff(vec2(1,0));
res += mat4(0.088871955871582,-0.163874506950378,-0.033154468983412,0.378828942775726,-0.170392498373985,-0.040406391024590,0.123762108385563,0.041569605469704,-0.031646836549044,-0.154225766658783,0.086810648441315,0.035982370376587,0.059029951691628,0.013213366270065,0.064334414899349,-0.068697765469551) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.138167217373848,-0.221553802490234,0.074511304497719,0.526334345340729) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 2_6

vec4 hook()
{
vec4 res = vec4(-0.016588231548667,0.195125967264175,0.271965503692627,0.088049866259098);
res += mat4(-0.192762285470963,-0.095162533223629,-0.017322823405266,0.106498159468174,0.024438939988613,0.040906693786383,0.149671122431755,0.190697669982910,-0.097245074808598,-0.184944152832031,-0.115211814641953,-0.038811124861240,-0.042829491198063,0.080466657876968,0.181708037853241,0.185607090592384) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.049374032765627,0.069499485194683,0.067401990294456,-0.011079140007496,0.020302230492234,0.242725729942322,0.016740923747420,0.107458546757698,0.145268484950066,0.006059366744012,0.118797697126865,-0.050573449581861,0.061878658831120,0.099886305630207,-0.087835855782032,0.383409172296524) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.003597819246352,-0.011622332967818,-0.297795891761780,0.031863439828157,0.143174335360527,0.128280743956566,0.053513951599598,0.013597276061773,-0.145648717880249,-0.215538263320923,-0.440857261419296,-0.195504039525986,0.084194168448448,-0.055805604904890,-0.116200365126133,0.029893003404140) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.261052787303925,0.002454058267176,-0.054195210337639,-0.037640612572432,0.019127104431391,-0.258353948593140,0.036833636462688,-0.077615037560463,-0.067954137921333,-0.058011889457703,-0.053998287767172,0.036447774618864,0.224127694964409,0.103188455104828,-0.012474164366722,0.006377849262208) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.032798353582621,0.169124111533165,0.012174947187304,0.104273013770580,-0.022316800430417,-0.122620351612568,0.143639951944351,0.021231243386865,0.150365307927132,0.220564976334572,0.012460195459425,0.003867725143209,-0.352782040834427,-0.174648180603981,-0.050928108394146,-0.178772300481796) * MODEL1_texOff(vec2(0,0));
res += mat4(0.143397256731987,-0.036620359867811,-0.359950125217438,-0.014452279545367,-0.228065833449364,0.373875349760056,0.061857335269451,-0.007305468898267,-0.043578673154116,0.042302962392569,-0.038542214781046,0.082349739968777,-0.043973162770271,-0.297417104244232,-0.025762364268303,-0.068473376333714) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.011938912793994,0.049529738724232,0.336104303598404,0.054037097841501,0.007097393274307,0.084861271083355,-0.158623471856117,-0.014435450546443,0.129209160804749,-0.055801779031754,0.084581352770329,0.028027771040797,0.042978148907423,0.095132097601891,0.096293501555920,-0.011322188191116) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.207599192857742,-0.112698145210743,-0.108131997287273,0.046481739729643,0.084030829370022,-0.094626635313034,-0.124214455485344,0.024737460538745,-0.170559808611870,0.014041591435671,-0.019844725728035,-0.029513146728277,-0.023638444021344,-0.036704387515783,0.013541255146265,0.056350968778133) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.034202296286821,0.019382532685995,-0.217974215745926,-0.011580598540604,-0.317204326391220,0.231289744377136,0.075404353439808,0.049089245498180,-0.173452451825142,0.014638765715063,0.131414219737053,-0.120307713747025,-0.085238680243492,0.157806783914566,-0.085012845695019,-0.058510378003120) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.030966203659773,-0.163857832551003,-0.222053065896034,0.117486976087093,-0.025743180885911,0.039566457271576,-0.072110787034035,-0.113562308251858,0.016437646001577,0.002973091555759,0.113361127674580,-0.072616696357727,0.107995487749577,-0.007925095967948,0.069755204021931,-0.039103575050831) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.052730143070221,-0.260218739509583,-0.386717706918716,0.052184604108334,-0.008014381863177,0.132870808243752,0.219081550836563,-0.226617947220802,0.003525520907715,-0.056014176458120,0.030328774824739,0.041374050080776,0.202083677053452,0.007312681991607,-0.015636894851923,-0.043167218565941) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.195626020431519,-0.054651696234941,-0.089058242738247,0.049275618046522,0.127123147249222,0.043973237276077,-0.154796376824379,-0.125639393925667,-0.008794276043773,-0.216640785336494,0.203707829117775,-0.040880136191845,0.226526454091072,-0.020229551941156,0.149085253477097,0.039928879588842) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.056731775403023,0.109984822571278,-0.197367057204247,0.011599885299802,0.089329846203327,0.073169082403183,-0.137299075722694,-0.008237575180829,-0.227860927581787,0.084550686180592,0.013311990536749,0.033538021147251,-0.000999567913823,0.059831045567989,0.256939321756363,0.029352778568864) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.108318187296391,0.190461143851280,-0.222941204905510,-0.079206272959709,0.002935550175607,-0.044611737132072,0.255521416664124,-0.055224534124136,-0.042925000190735,-0.065876580774784,0.051988396793604,0.132299259305000,0.207035943865776,0.081225566565990,-0.039007518440485,0.084333226084709) * MODEL2_texOff(vec2(0,0));
res += mat4(0.061199743300676,-0.393446594476700,-0.098075911402702,-0.048327784985304,-0.169734299182892,-0.010418450459838,0.118908889591694,0.151323705911636,0.096438214182854,0.041778951883316,0.154457852244377,0.067874126136303,0.102505914866924,0.078479595482349,0.064592391252518,0.103312917053699) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.259882032871246,-0.043464366346598,-0.119573004543781,-0.011220369488001,-0.263532459735870,0.020749252289534,-0.097446203231812,0.009299683384597,-0.156055584549904,-0.010729544796050,-0.065463051199913,-0.050949994474649,0.208633631467819,-0.028442542999983,0.165316134691238,0.014281113632023) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.368374437093735,-0.094719976186752,-0.073306307196617,0.004709140863270,0.144253045320511,0.121539272367954,0.232744425535202,0.052261851727962,-0.114634521305561,-0.074132949113846,-0.231016024947166,-0.071767918765545,0.152720510959625,0.021299075335264,0.162362158298492,-0.014891370199621) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.077143169939518,-0.242399543523788,0.025051498785615,0.062724485993385,0.173521161079407,0.044076610356569,-0.060369603335857,0.012628873810172,-0.085948832333088,0.000576732156333,0.038798943161964,-0.027737431228161,0.350061744451523,0.055524896830320,0.019062416628003,0.055517379194498) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.066876709461212,0.121076501905918,0.141937389969826,-0.025474866852164,0.033420223742723,0.063961595296860,0.214616805315018,-0.197171017527580,0.074322968721390,-0.058819286525249,-0.068294264376163,-0.022172626107931,0.014692084863782,0.032742466777563,0.168715059757233,0.081179387867451) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.026126893237233,0.083653137087822,0.049314253032207,-0.037504158914089,0.133323192596436,0.034927047789097,-0.007356177549809,-0.130066394805908,0.050751905888319,0.071042463183403,-0.199502527713776,-0.176154553890228,0.045493405312300,0.004801002331078,0.007512385025620,0.043123710900545) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.290998011827469,-0.071107387542725,0.117909289896488,-0.133379325270653,-0.083196461200714,-0.079047240316868,0.069592624902725,-0.027264105156064,0.156021058559418,0.140619635581970,-0.294312536716461,-0.178651869297028,-0.024297233670950,-0.005100413691252,0.361678242683411,0.263455897569656) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.048948008567095,0.034962199628353,0.073611423373222,0.007066715974361,-0.040208339691162,0.145949944853783,0.139681324362755,-0.059489272534847,0.146240517497063,0.116062492132187,-0.051144447177649,-0.031135359779000,0.024920511990786,-0.167288944125175,-0.041309561580420,0.022832727059722) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.109143689274788,-0.005327327642590,-0.052563037723303,-0.138378456234932,0.012691562063992,-0.009860085323453,0.007963300682604,0.014783027581871,0.053496245294809,-0.040413279086351,-0.762219071388245,0.044464297592640,0.027958577498794,0.059456072747707,-0.138372913002968,-0.053204283118248) * MODEL3_texOff(vec2(0,0));
res += mat4(0.043109945952892,0.169788911938667,0.064468882977962,0.047712557017803,-0.022744251415133,-0.019987123087049,-0.114853702485561,0.030648050829768,0.233854904770851,0.073628246784210,-1.019514918327332,-0.005358236841857,0.209502771496773,-0.140934675931931,0.033252198249102,-0.104264982044697) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.066795952618122,0.058325573801994,0.013733775354922,-0.008602141402662,-0.137366533279419,0.030456600710750,0.037099983543158,-0.034198641777039,-0.005055998452008,0.126628026366234,0.083602651953697,0.001693057711236,0.043956317007542,-0.004873744212091,0.046642497181892,-0.036284502595663) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.003428999567404,-0.036369703710079,0.047284495085478,-0.007123338989913,-0.006028306204826,-0.180893778800964,0.009604637511075,0.034289143979549,0.080021031200886,-0.102628983557224,-0.231574565172195,-0.004231208469719,-0.111479952931404,0.104162268340588,0.169629409909248,0.073847688734531) * MODEL3_texOff(vec2(1,0));
res += mat4(0.021823184564710,-0.021415404975414,0.057867966592312,-0.015266879461706,-0.112904541194439,-0.043609257787466,0.117730267345905,-0.011979603208601,0.163403436541557,-0.081919796764851,-0.277398616075516,-0.000185579847312,0.063999101519585,-0.015517600812018,0.152145504951477,-0.011540486477315) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.053268902003765,-0.107175283133984,-0.093077458441257,0.079583548009396,-0.012034843675792,-0.084991872310638,-0.089822277426720,-0.002941498067230,0.059397045522928,0.012000083923340,-0.020874563604593,0.014477878808975,-0.226066455245018,0.081888876855373,0.107342146337032,-0.059328392148018) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.030526967719197,-0.085506819188595,-0.267953515052795,0.173460409045219,0.198423087596893,-0.126030758023262,0.022433921694756,-0.014707381837070,0.118177592754364,-0.091353707015514,-0.064474754035473,0.144855067133904,-0.212017685174942,0.033865690231323,0.107101872563362,0.002985541475937) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.088112935423851,-0.017849193885922,0.161983773112297,0.059242475777864,0.057308048009872,-0.343493193387985,0.006717325653881,0.030169315636158,-0.158546373248100,0.007200491614640,0.000931849994231,0.000796916719992,-0.196876689791679,-0.122405298054218,-0.006751579232514,-0.054200619459152) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.151583954691887,-0.033575665205717,0.067187517881393,-0.144214421510696,0.029145246371627,0.028540348634124,0.062435530126095,0.013514625839889,0.066989980638027,-0.200719520449638,0.043712839484215,-0.045699995011091,-0.145076677203178,-0.052044216543436,-0.006774406880140,-0.023477742448449) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.031847406178713,0.024993211030960,0.204686954617500,0.006415410898626,-0.070353724062443,0.122931644320488,-0.056400056928396,0.129817023873329,-0.017324930056930,-0.004947060253471,-0.283568292856216,0.044000685214996,-0.228978931903839,-0.248219057917595,-0.057436008006334,-0.129884719848633) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.115490615367889,-0.461580961942673,-0.122472092509270,0.024421643465757,-0.024743879213929,0.038972333073616,-0.013697461225092,0.474514365196228,-0.008370666764677,-0.247569382190704,0.041087910532951,-0.108408272266388,-0.286626100540161,-0.145542085170746,0.009028639644384,-0.042388089001179) * MODEL4_texOff(vec2(0,1));
res += mat4(0.082236588001251,-0.214887648820877,-0.093738339841366,0.051613740622997,0.108039528131485,-0.116732321679592,-0.133340790867805,-0.024306064471602,-0.071973323822021,-0.029676765203476,0.007901099510491,-0.002515045227483,-0.380449682474136,-0.127375960350037,-0.072472952306271,-0.038195177912712) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.122416168451309,-0.065371759235859,-0.418993890285492,-0.047935262322426,-0.086456485092640,-0.031071163713932,-0.078035384416580,-0.075844712555408,-0.072057440876961,0.085458882153034,0.042369712144136,-0.017291298136115,-0.284829825162888,-0.072303123772144,-0.272143900394440,0.051036331802607) * MODEL4_texOff(vec2(1,0));
res += mat4(0.073220975697041,-0.018781132996082,-0.266913264989853,-0.068375833332539,-0.086480401456356,-0.103352151811123,-0.324889659881592,-0.064891345798969,0.091947592794895,-0.033911809325218,-0.083810538053513,-0.018298896029592,-0.323845326900482,-0.043910928070545,0.013328650966287,0.033402994275093) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.064275160431862,-0.028454648330808,-0.105501286685467,0.044325713068247,0.047682244330645,-0.026004781946540,0.045331288129091,-0.094259113073349,0.076964624226093,-0.056811399757862,-0.176662236452103,-0.165369138121605,0.153766512870789,-0.001518069184385,0.055776864290237,-0.025961171835661) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.120687946677208,0.028099762275815,-0.233134090900421,0.421381235122681,-0.071566432714462,0.127760455012321,0.078302256762981,-0.366802453994751,0.105624169111252,0.023166796192527,0.047621831297874,0.031770389527082,0.028971251100302,-0.024965167045593,-0.154834941029549,0.056788116693497) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.065432287752628,-0.025921002030373,-0.112862117588520,0.154790371656418,0.160768926143646,0.186990931630135,0.119010649621487,-0.168820574879646,-0.042644966393709,0.115665860474110,0.121368475258350,-0.121354088187218,-0.234639242291451,-0.136557027697563,0.109171122312546,0.032746799290180) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.164969623088837,-0.008651748299599,-0.180002272129059,0.066936984658241,0.136490747332573,0.054775983095169,0.300331741571426,-0.260697007179260,-0.093855015933514,-0.076288767158985,-0.118866115808487,-0.135359093546867,0.038527730852365,0.038312278687954,-0.015342639759183,0.112492904067039) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.331785321235657,-0.253918260335922,-0.214179798960686,-0.025326924398541,0.045001875609159,-0.042796976864338,-0.062423147261143,-1.092570662498474,0.081054672598839,-0.175157114863396,0.125837177038193,-0.002245986601338,0.078121632337570,0.092537827789783,-0.079704947769642,-0.046856977045536) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.272804766893387,0.136291310191154,0.044663473963737,0.039842758327723,-0.150214031338692,0.178183257579803,0.005487377755344,-0.036819610744715,0.130464300513268,0.087745748460293,-0.196596384048462,-0.126762926578522,-0.107797034084797,-0.003298194613308,0.035542037338018,0.079557716846466) * MODEL5_texOff(vec2(0,1));
res += mat4(0.149690642952919,0.035250239074230,0.050952326506376,0.024024263024330,0.103491030633450,-0.058221269398928,0.115461848676205,-0.060953538864851,0.036454182118177,0.083839170634747,-0.156369328498840,-0.047255132347345,-0.117494307458401,0.008531410247087,-0.007129106670618,0.063627764582634) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.032399773597717,-0.068590164184570,0.033351823687553,0.092770524322987,0.368212163448334,-0.145018666982651,-0.113185577094555,0.032929260283709,0.122580423951149,-0.088156096637249,0.068976268172264,-0.015886813402176,0.233864620327950,-0.087015166878700,-0.216048866510391,0.011820608749986) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.166034147143364,0.054563093930483,0.052292395383120,-0.007575652096421,-0.098448954522610,-0.138348251581192,0.067871890962124,0.034609034657478,-0.300155192613602,-0.031913410872221,0.182895556092262,0.002412339672446,0.237001106142998,-0.215236052870750,-0.040970370173454,-0.012616052292287) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.026473743841052,0.159883096814156,0.076312109827995,0.001739699626341,-0.126005217432976,0.091275036334991,-0.045373622328043,0.041229307651520,0.110921174287796,0.066798180341721,0.083979159593582,-0.130302384495735,-0.069970570504665,0.049731750041246,0.094174571335316,0.208691135048866) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.102650523185730,0.246898844838142,0.049517113715410,0.119309037923813,-0.082548618316650,0.043726872652769,0.080413095653057,-0.058199368417263,0.073502093553543,-0.113690592348576,-0.213824808597565,-0.035634428262711,0.114022567868233,0.127950668334961,0.077217049896717,0.318981230258942) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.014023371972144,0.334723412990570,0.088618800044060,0.073164016008377,0.093603633344173,0.166036203503609,0.009605854749680,0.067139729857445,0.072584763169289,-0.074001222848892,-0.078203499317169,-0.075779676437378,0.209093138575554,-0.043224833905697,-0.035580500960350,-0.008492953144014) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.176817506551743,0.166867256164551,0.051318626850843,0.097261130809784,0.003013986395672,0.037374421954155,-0.095706589519978,0.009127206169069,0.036436311900616,0.061757307499647,0.189287573099136,0.004881585016847,-0.018538055941463,-0.260415136814117,-0.049482744187117,-0.028121419250965) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.010855308733881,0.111499093472958,-0.188284054398537,0.133919507265091,0.089415602385998,-0.151339396834373,0.147534683346748,0.437570422887802,-0.017262876033783,-0.111432604491711,-0.045368455350399,-0.129274219274521,-0.014477143064141,-0.106897927820683,-0.124411657452583,-0.053101066499949) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.192132234573364,0.133804127573967,-0.084338136017323,0.154949322342873,-0.005399162415415,-0.183216318488121,-0.094188228249550,-0.076698370277882,0.003860492026433,-0.015037046745420,-0.028745574876666,-0.018264546990395,0.042891770601273,0.050809971988201,-0.080338895320892,0.069501034915447) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.000208217068575,0.185944423079491,0.204205751419067,-0.002351251663640,-0.019137488678098,-0.174517855048180,0.135486528277397,-0.093116343021393,0.058321338146925,0.053731106221676,0.078261613845825,0.051739439368248,0.046895120292902,-0.053116489201784,0.023287190124393,-0.045035533607006) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.030813783407211,0.109552055597305,-0.186473459005356,0.052097465842962,-0.109541065990925,-0.371998161077499,0.055521305650473,-0.057624053210020,0.066368326544762,-0.104360572993755,-0.008485496975482,0.031016290187836,-0.107803724706173,0.092730477452278,-0.037996273487806,-0.200105085968971) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.263348191976547,0.131191864609718,-0.013452312909067,-0.130182489752769,0.092360958456993,-0.151347279548645,0.083369664847851,-0.061605170369148,0.096956379711628,-0.024935036897659,0.058291103690863,0.051859799772501,-0.047362811863422,0.207837045192719,-0.038604285567999,0.022191980853677) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.272485166788101,0.315309017896652,0.011401895433664,-0.346684634685516) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 3_1

vec4 hook()
{
vec4 res = vec4(-0.257532000541687,0.001799850957468,-0.026624403893948,-0.133918181061745);
res += mat4(-0.074937149882317,-0.018301105126739,-0.063836850225925,-0.087079301476479,-0.075244858860970,0.033734079450369,0.006926447618753,-0.004526384174824,-0.144760712981224,-0.069262340664864,0.060389474034309,0.066519901156425,-0.041321415454149,0.003835713258013,-0.061104301363230,-0.008889356628060) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.115525595843792,-0.112446062266827,-0.054898932576180,-0.022022247314453,-0.144051447510719,0.051398210227489,0.029871083796024,-0.113507218658924,0.053439788520336,0.170383170247078,0.048263333737850,0.041174754500389,-0.065848655998707,-0.047473192214966,-0.044814180582762,-0.129497498273849) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.053276617079973,-0.166298419237137,0.043440002948046,-0.103300616145134,-0.219941079616547,0.028569865971804,-0.011459393426776,-0.051637522876263,0.051193315535784,-0.017997372895479,-0.069169856607914,0.094475828111172,0.086065523326397,-0.041728474199772,-0.027979232370853,-0.053643412888050) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.000038498248614,-0.055616989731789,-0.081235632300377,-0.152772516012192,-0.020798144862056,-0.012742402032018,0.028613889589906,0.008404362015426,0.000136421775096,-0.154833897948265,0.110858157277107,0.005534800235182,0.084245972335339,-0.007419668603688,-0.031942754983902,-0.018570266664028) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.032733839005232,-0.134134486317635,0.017808588221669,-0.062301889061928,-0.385549604892731,0.172644823789597,0.009767885319889,0.160101592540741,0.026019323617220,0.208751022815704,0.062837667763233,-0.097726061940193,-0.114354856312275,0.093351781368256,-0.028098473325372,-0.224388465285301) * MODEL7_texOff(vec2(0,0));
res += mat4(0.034043926745653,0.170060887932777,0.030500940978527,0.053412131965160,-0.328053146600723,0.160086274147034,0.032687716186047,-0.022380188107491,0.191513001918793,-0.071315854787827,-0.040029313415289,0.042335700243711,0.074636727571487,0.114549987018108,0.005596087314188,-0.092399902641773) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.047223664820194,0.154965326189995,-0.133906468749046,-0.006935734301805,-0.039868876338005,-0.017686927691102,0.024792548269033,-0.017520485445857,-0.075893171131611,-0.054102286696434,0.023280348628759,0.071931786835194,0.083697579801083,-0.003095679916441,0.054725617170334,-0.072900682687759) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.191989332437515,0.110878668725491,-0.126526743173599,-0.028660057112575,-0.008270286023617,-0.009661492891610,0.096574820578098,0.022577600553632,0.144477829337120,0.063740655779839,-0.022175170481205,0.117597118020058,0.107077978551388,0.051285233348608,0.040743425488472,-0.046641975641251) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.032640445977449,0.146807521581650,-0.003855406772345,0.053589228540659,-0.090169057250023,0.012880242429674,0.056076429784298,-0.023305108770728,-0.040715418756008,0.119491241872311,-0.026286447420716,0.045333355665207,0.023868286982179,-0.077206499874592,0.008342198096216,-0.003528165630996) * MODEL7_texOff(vec2(1,1));
res += mat4(0.126737847924232,0.037232305854559,-0.002199725713581,-0.085277847945690,0.054319325834513,0.060311090201139,-0.006222659256309,0.125477671623230,0.067190527915955,-0.092019520699978,-0.012737897224724,-0.146633908152580,-0.031196413561702,0.056036163121462,0.000052151852287,0.094440005719662) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.100162975490093,-0.072633951902390,-0.038851410150528,-0.118473745882511,0.013307664543390,-0.139790326356888,0.016382783651352,0.017848206683993,-0.053882993757725,-0.262733250856400,0.002028977731243,0.026272982358932,0.042150575667620,-0.025920653715730,0.031702321022749,0.054734885692596) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.034251876175404,-0.121383689343929,-0.012491952627897,-0.066621445119381,0.113208279013634,0.010828301310539,-0.041144482791424,0.077848277986050,0.089018240571022,-0.052321478724480,-0.014061787165701,0.050435952842236,-0.030563393607736,-0.060853417962790,0.003354372456670,0.062327571213245) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.059980671852827,-0.009428243152797,-0.020508177578449,-0.054288912564516,0.099908798933029,0.116804555058479,0.103240601718426,0.101069368422031,0.048801004886627,-0.090101227164268,0.002756720408797,-0.041373986750841,0.024738326668739,-0.053976289927959,0.107726953923702,0.081668220460415) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.086309887468815,0.048368349671364,-0.017281454056501,0.071187898516655,0.169609561562538,-0.029200389981270,-0.008106963708997,0.200908988714218,0.022164845839143,0.009156903252006,-0.044169787317514,-0.081812076270580,0.119097232818604,-0.035386554896832,0.052250064909458,0.003716311417520) * MODEL8_texOff(vec2(0,0));
res += mat4(0.005550879519433,0.041321340948343,-0.003612531349063,-0.098653838038445,0.107666462659836,-0.002406713785604,-0.012469747103751,0.082060210406780,-0.092848658561707,-0.128908634185791,-0.089147225022316,-0.063984706997871,-0.207295313477516,-0.100365340709686,-0.019780922681093,0.070184782147408) * MODEL8_texOff(vec2(0,1));
res += mat4(0.051447715610266,0.000848362222314,0.033135373145342,-0.009228147566319,-0.043619528412819,0.035586554557085,-0.109559439122677,0.044704049825668,0.030343363061547,-0.035382408648729,0.031898178160191,-0.080573573708534,-0.136979699134827,-0.151621505618095,0.053048372268677,0.061082206666470) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.155869990587234,0.030934445559978,-0.015238849446177,0.053843587636948,0.033742461353540,0.203230649232864,-0.093327865004539,0.056242533028126,0.040509901940823,0.109111398458481,-0.139721646904945,-0.036258794367313,0.114242918789387,0.039384949952364,-0.084519207477570,0.030691375955939) * MODEL8_texOff(vec2(1,0));
res += mat4(0.070117905735970,-0.125273376703262,-0.024226197972894,-0.005536559969187,0.091909073293209,-0.028236409649253,-0.053856138139963,0.062269777059555,-0.164266839623451,0.136218234896660,-0.167416483163834,0.096203774213791,-0.183901906013489,-0.216167747974396,-0.094054713845253,0.049568600952625) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.141783237457275,0.078069612383842,-0.003849786473438,-0.069464392960072,0.010197678580880,-0.071595281362534,0.016714552417397,-0.000363070226740,0.187986701726913,0.031852774322033,-0.029518781229854,-0.083073005080223,0.011071030050516,0.121303454041481,-0.033482097089291,0.067381665110588) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.003945829812437,-0.170030280947685,0.001671542762779,0.122816093266010,-0.102373555302620,0.004070789087564,0.054312098771334,0.154344230890274,0.036651566624641,-0.120885968208313,-0.011695000343025,0.106091216206551,0.048836696892977,0.059727877378464,-0.021960012614727,0.001158412196673) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.121768712997437,-0.020885774865746,-0.000021686613763,0.015874663367867,0.133730873465538,0.195359274744987,0.048438087105751,0.114720635116100,0.231661900877953,0.106738500297070,0.058719702064991,-0.074313670396805,-0.066578835248947,-0.054228283464909,-0.048036277294159,0.129537254571915) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.198830068111420,0.032761812210083,0.010442413389683,0.112552143633366,0.012628103606403,0.005403350573033,0.001753244781867,-0.052626848220825,0.081585384905338,0.027407564222813,-0.057900082319975,0.027531322091818,0.128589153289795,0.006362485699356,-0.002691828878596,-0.007784157991409) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.039609149098396,0.150031343102455,0.001814120914787,-0.012421989813447,0.092855617403984,0.007072797976434,0.129506543278694,0.135890990495682,0.026961997151375,-0.026324445381761,0.119026176631451,0.215958908200264,0.127177894115448,-0.065993279218674,-0.002539479639381,0.120958276093006) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.193125128746033,0.061291951686144,-0.104953780770302,0.112769432365894,0.054396737366915,0.131003856658936,0.124988004565239,0.072912633419037,0.349016398191452,0.164569213986397,0.036951892077923,0.198226243257523,0.076850980520248,-0.172255843877792,0.018884589895606,-0.035341180860996) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.063816517591476,-0.014701454900205,0.010145043022931,0.005602194927633,0.240085050463676,0.113077878952026,-0.056594971567392,0.029940290376544,0.012643588706851,0.108244717121124,0.036150552332401,0.018232304602861,0.053552389144897,0.134189695119858,-0.021648319438100,0.030511029064655) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.079829454421997,-0.172400370240211,-0.078394785523415,0.030248168855906,-0.015190318226814,-0.045668765902519,-0.008786057122052,0.161545336246490,-0.079089596867561,0.059973899275064,-0.019162563607097,-0.014562412165105,0.248839884996414,-0.119379527866840,-0.012570780701935,0.100875489413738) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.219773128628731,0.173005238175392,-0.072453230619431,0.081685736775398,0.077633567154408,0.120914302766323,0.079601258039474,-0.031866449862719,0.019239701330662,0.094114489853382,0.001627831254154,0.075348481535912,0.115452051162720,0.040184378623962,0.020841080695391,-0.089923858642578) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.030271178111434,0.034544728696346,0.029696540907025,0.035935893654823,0.067441478371620,-0.046706214547157,-0.009551726281643,-0.068467490375042,0.057628449052572,-0.049155086278915,-0.024185759946704,-0.040661316365004,-0.045873373746872,-0.082491166889668,-0.001859487267211,0.076904863119125) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.069867581129074,0.080189816653728,0.097817726433277,-0.082427270710468,0.000328743772116,-0.088555939495564,-0.030224507674575,0.005098437424749,0.021805265918374,0.043670702725649,0.012553582899272,-0.172292694449425,0.046148594468832,-0.014120220206678,-0.100550413131714,0.309904515743256) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.064667299389839,0.189381703734398,0.027301417663693,0.010740280151367,0.102446682751179,-0.028235265985131,0.001244933926500,-0.052121769636869,0.030309878289700,-0.003078535431996,-0.023305747658014,-0.065109990537167,0.063792288303375,-0.007942610420287,-0.034601375460625,-0.016126759350300) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.001943395240232,-0.064355447888374,0.164929926395416,-0.070483125746250,-0.009184851311147,-0.085903532803059,-0.048341989517212,0.023595400154591,0.058313265442848,0.170258894562721,-0.132288604974747,0.060842961072922,0.065047435462475,0.031593911349773,0.214494854211807,-0.179259672760963) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.131938397884369,0.246796935796738,0.004911424592137,0.072075180709362,0.148609608411789,0.048825085163116,-0.032641500234604,0.063159383833408,-0.113312810659409,-0.007239381782711,-0.127276629209518,0.060191154479980,0.059061408042908,0.170082762837410,-0.845014154911041,-0.603503108024597) * MODEL10_texOff(vec2(0,0));
res += mat4(0.027200562879443,-0.186556711792946,-0.090167291462421,0.017954114824533,0.129521891474724,-0.078650288283825,-0.003399169305339,-0.022769307717681,0.034553620964289,0.008668712340295,-0.071695692837238,0.018441515043378,0.062509894371033,-0.238091528415680,0.184062227606773,-0.081627294421196) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.010134068317711,0.083786413073540,0.050459396094084,-0.024540387094021,-0.042751826345921,-0.027895884588361,-0.032588232308626,-0.029131883755326,0.126390859484673,0.128482416272163,-0.039174683392048,-0.071412093937397,-0.050600614398718,0.050776287913322,0.029619349166751,-0.015363587066531) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.071196399629116,-0.006905754096806,-0.012789955362678,0.087268233299255,0.110151216387749,-0.297332286834717,0.047942660748959,0.042286053299904,-0.079832106828690,0.076590530574322,-0.049884941428900,-0.027404041960835,0.003093366511166,0.119849413633347,0.049192178994417,0.004854076541960) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.060205034911633,-0.066914938390255,-0.043785423040390,0.026542935520411,0.185556769371033,-0.120280623435974,0.041475798934698,-0.002760572591797,-0.008495680056512,0.049797073006630,-0.025728506967425,-0.037784591317177,0.128002434968948,-0.157242938876152,0.016397517174482,0.011771487072110) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.025928758084774,-0.115194551646709,0.030267711728811,-0.086460195481777,-0.106521308422089,0.034016422927380,-0.099081799387932,-0.059519231319427,0.027139371261001,0.009254675358534,-0.047214291989803,0.087884493172169,0.055754158645868,0.005581200588495,0.009659662842751,-0.147878006100655) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.173312455415726,0.065477229654789,0.023222556337714,0.017357079312205,-0.050496146082878,0.018447451293468,-0.065596215426922,0.031291682273149,-0.058523781597614,-0.053261917084455,0.067712090909481,0.056964553892612,0.046144150197506,-0.046682681888342,-0.024947440251708,0.049696739763021) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.081287905573845,0.058125860989094,0.012007101438940,0.013563689775765,-0.039444990456104,0.087318494915962,0.021202288568020,-0.016728447750211,-0.002518159570172,0.075530596077442,0.063882604241371,0.096778050065041,-0.031185043975711,-0.138183772563934,-0.029301943257451,-0.042816240340471) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.121517352759838,0.073448978364468,0.054492119699717,-0.203812777996063,0.166480973362923,0.025426737964153,-0.144590690732002,0.098462633788586,0.106728017330170,-0.005536086391658,-0.044182892888784,-0.087842270731926,0.048785965889692,0.003443981753662,0.034305579960346,-0.035558875650167) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.395820200443268,-0.282454192638397,0.096706986427307,-0.124165363609791,0.026705674827099,-0.061319950968027,-0.051868040114641,0.054851558059454,0.012301465496421,-0.044955577701330,0.046666365116835,0.093771815299988,0.539377748966217,-0.161758363246918,0.130690455436707,0.206678152084351) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.058691266924143,-0.089284330606461,0.000717535498552,-0.059661336243153,0.018253065645695,0.120858423411846,0.023666979745030,-0.003571755485609,0.011576702818274,-0.310558497905731,0.161940500140190,-0.056322082877159,-0.145944312214851,-0.016052050516009,0.005977806635201,0.039125744253397) * MODEL11_texOff(vec2(0,1));
res += mat4(0.116573698818684,0.163637027144432,-0.150093942880630,-0.025811599567533,-0.032588485628366,-0.051087804138660,0.084914155304432,-0.030542816966772,0.016217024996877,-0.052813619375229,-0.081895440816879,0.035274609923363,0.054634999483824,-0.003802106017247,-0.038940306752920,-0.010995446704328) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.017582641914487,0.147824659943581,-0.063964478671551,0.201661631464958,0.206389039754868,-0.208190664649010,0.065658256411552,0.150664672255516,-0.096177965402603,0.166422262787819,0.044555630534887,-0.055924896150827,-0.090536706149578,0.063082933425903,0.059526704251766,-0.017818948253989) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.024513430893421,-0.132260620594025,-0.021940885111690,-0.024947145953774,0.057183586061001,-0.303102463483810,0.038163747638464,-0.040437605232000,-0.047437455505133,0.135189905762672,0.015170051716268,0.009921348653734,0.011087145656347,0.338823318481445,0.045811690390110,-0.034990280866623) * MODEL11_texOff(vec2(1,1));
res += mat4(0.103319779038429,-0.021836679428816,0.034643020480871,0.061690747737885,0.178947657346725,-0.058434221893549,0.131461516022682,0.008219162933528,0.023610491305590,0.063505209982395,0.002870142459869,0.054126780480146,-0.030336823314428,-0.109847754240036,0.010333183221519,0.086831994354725) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.144296377897263,0.091727249324322,-0.022472314536572,-0.018937010318041,0.091457970440388,0.090986199676991,0.120508104562759,0.102260194718838,0.071877516806126,0.075470268726349,0.032980829477310,-0.089792668819427,-0.042366582900286,-0.041855581104755,0.087199747562408,0.089212976396084) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.028567207977176,-0.177729785442352,-0.039281763136387,-0.089632958173752,0.018426837399602,0.137874424457550,0.024137713015079,0.036515891551971,0.075853101909161,-0.180989071726799,0.031738929450512,-0.042120374739170,0.050730612128973,0.122848711907864,0.049530912190676,-0.026213794946671) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.111605457961559,-0.027554277330637,0.113359101116657,-0.082135237753391,-0.041274614632130,0.087621569633484,0.058948885649443,-0.008198648691177,0.206594586372375,0.069406382739544,-0.042624715715647,0.017657808959484,-0.186516880989075,0.057581558823586,0.056924618780613,-0.190897494554520) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.160570964217186,-0.108609892427921,-0.023996084928513,-0.071175329387188,-0.051397949457169,-0.115462601184845,0.092104606330395,0.032032653689384,0.045116189867258,0.013017266988754,-0.015372579917312,-0.047301024198532,-0.349784791469574,0.029622599482536,0.020097343251109,0.236108288168907) * MODEL12_texOff(vec2(0,0));
res += mat4(0.025501489639282,-0.112302772700787,-0.125143110752106,-0.005934890825301,0.035761088132858,0.158094927668571,0.140085697174072,0.002153217326850,0.368990063667297,0.028075650334358,-0.018900960683823,0.069999217987061,-0.021071286872029,-0.062138833105564,0.081967562437057,-0.094347186386585) * MODEL12_texOff(vec2(0,1));
res += mat4(0.054693311452866,0.048775557428598,-0.104167006909847,0.005638456437737,-0.096514992415905,0.076342463493347,0.023266931995749,0.017000986263156,0.001203623134643,0.026678899303079,-0.028688479214907,0.070497147738934,-0.038307271897793,0.091198280453682,-0.149071708321571,0.024806698784232) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.053411602973938,-0.058621518313885,-0.040925253182650,0.002548302756622,-0.029000112786889,0.088223308324814,0.034376379102468,0.051027242094278,0.002681142417714,0.009946953505278,-0.033792488276958,0.092649936676025,-0.035582222044468,0.063713327050209,-0.090703368186951,-0.047533590346575) * MODEL12_texOff(vec2(1,0));
res += mat4(0.051020298153162,-0.133907049894333,0.037238575518131,-0.028190236538649,0.091060698032379,0.028751319274306,0.016032604500651,0.042272850871086,0.263525307178497,-0.423655778169632,-0.008801752701402,0.090775839984417,-0.011981907300651,-0.261873126029968,0.021788369864225,-0.110049426555634) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.080092608928680,-0.220082908868790,0.798403859138489,0.558662950992584) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.023009613156319,-0.115314409136772,0.064917571842670,0.102903969585896);
res += mat4(-0.130762934684753,-0.109436891973019,-0.242043539881706,-0.127171188592911,-0.011727658100426,-0.017161792144179,-0.020895782858133,0.010260767303407,-0.018382906913757,0.034075081348419,0.018154913559556,0.092094928026199,-0.024067189544439,0.114537462592125,0.019796535372734,-0.127111047506332) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.172694817185402,0.032972976565361,-0.240871608257294,-0.133011981844902,-0.067804217338562,0.021088903769851,-0.172184199094772,-0.013621341437101,0.098817124962807,-0.067596361041069,-0.082413494586945,0.071658194065094,-0.021637283265591,0.059782028198242,-0.018695291131735,-0.070007018744946) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.004733575973660,-0.012580591253936,-0.007177635561675,-0.055460587143898,-0.139773577451706,-0.040308818221092,-0.239076927304268,0.044926352798939,-0.105511330068111,0.017183579504490,-0.231709122657776,-0.030992139130831,-0.057650536298752,-0.023366276174784,-0.072763808071613,-0.058832362294197) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.107905216515064,0.086156755685806,-0.089374624192715,-0.093995891511440,-0.023705253377557,0.107286743819714,-0.046760812401772,0.114767983555794,-0.103802084922791,-0.012641133740544,0.008078263141215,0.335916012525558,0.090185105800629,0.110967241227627,0.047405522316694,0.012520477175713) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.109415292739868,0.052020795643330,-0.376632362604141,-0.116089552640915,0.015956168994308,0.105133339762688,0.044836435467005,0.126857653260231,0.089572809636593,-0.081458963453770,0.028873993083835,-0.433516025543213,0.244531214237213,0.001982190413401,0.167034938931465,0.231130406260490) * MODEL7_texOff(vec2(0,0));
res += mat4(0.027882102876902,-0.067346982657909,0.038343984633684,0.119038589298725,0.224246487021446,0.074427597224712,0.116045735776424,0.084863729774952,-0.010397098958492,-0.019519846886396,-0.243513971567154,-0.121755205094814,0.080332860350609,0.027607992291451,0.076588071882725,0.076606348156929) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.163178771734238,-0.071949057281017,0.140253856778145,-0.019508827477694,0.013946470804513,0.046855092048645,-0.120584771037102,-0.017575711011887,0.115554578602314,-0.116164885461330,-0.079207994043827,0.031448014080524,0.010565546341240,0.062905892729759,0.054663926362991,-0.033292211592197) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.171371817588806,-0.188593834638596,0.338779300451279,0.068606711924076,0.066521257162094,0.076149269938469,-0.256536185741425,-0.006746451370418,-0.262398481369019,0.013132290914655,-0.035706747323275,0.048138339072466,0.097129866480827,0.222975268959999,-0.059362363070250,0.047784041613340) * MODEL7_texOff(vec2(1,0));
res += mat4(0.006536088883877,0.054720979183912,0.047369468957186,-0.010175367817283,-0.081996403634548,0.021197794005275,-0.252642810344696,0.065714746713638,-0.243952721357346,0.011803354136646,0.169146686792374,0.032087836414576,0.021242318674922,0.222235038876534,0.084949679672718,0.021087205037475) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.118796966969967,-0.021246107295156,-0.201515212655067,0.101709477603436,-0.057608470320702,-0.001824440201744,0.018521897494793,-0.080539025366306,0.051804404705763,-0.024251522496343,-0.177845314145088,-0.235010713338852,0.021254081279039,0.047605734318495,0.065433599054813,-0.065372861921787) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.114528790116310,0.119039118289948,-0.216317921876907,-0.014654528349638,0.090618081390858,0.226205483078957,-0.085560388863087,0.130920663475990,0.000875167257618,-0.009807876311243,0.118998423218727,-0.050977867096663,0.030919855460525,-0.005923358257860,0.085855811834335,-0.010160536505282) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.050170753151178,0.154412478208542,-0.049415290355682,-0.150482967495918,-0.051447894424200,0.039802711457014,-0.078906513750553,0.078198187053204,0.076633676886559,0.011813288554549,0.178574174642563,0.079759098589420,-0.000870972813573,-0.249662369489670,-0.026854516938329,0.118789754807949) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.004819609224796,-0.031029073521495,-0.076723918318748,0.166471451520920,-0.151383593678474,-0.088749289512634,-0.007364731747657,-0.036144711077213,0.139264002442360,-0.212020188570023,0.118056386709213,-0.166965901851654,-0.047422692179680,-0.013351295143366,-0.240090027451515,0.077731125056744) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.037912361323833,0.004062227904797,-0.156937181949615,-0.207443460822105,-0.101572759449482,0.188918143510818,-0.156826511025429,-0.512761414051056,0.000321061757859,-0.004514039959759,-0.213501214981079,-0.033457513898611,0.002828215481713,-0.103421360254288,0.011477492749691,-0.121253818273544) * MODEL8_texOff(vec2(0,0));
res += mat4(0.065218433737755,0.051152952015400,-0.116610810160637,-0.153846338391304,-0.118462532758713,0.050027340650558,-0.053861051797867,0.057457085698843,-0.143960431218147,-0.173145473003387,-0.108763240277767,0.035926524549723,0.016156498342752,-0.445739686489105,0.092054098844528,-0.080637760460377) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.241579234600067,0.054297853261232,-0.050475589931011,0.048368643969297,-0.087071940302849,-0.066778749227524,0.170268818736076,-0.012581900693476,-0.121380202472210,-0.085545487701893,-0.117621712386608,0.045182351022959,-0.084494605660439,-0.038828164339066,0.028263229876757,0.175788134336472) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.307720541954041,0.299221187829971,-0.127026408910751,-0.072167657315731,-0.267376810312271,0.004011072218418,0.039467435330153,0.009719861671329,-0.200886219739914,0.099996849894524,0.230964392423630,0.025823093950748,-0.202591881155968,-0.163800001144409,-0.036973956972361,-0.221439272165298) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.229169994592667,0.072495877742767,-0.090097635984421,0.001568307285197,-0.181101143360138,0.100573480129242,0.050679482519627,-0.076880112290382,-0.003026842605323,0.050726328045130,0.115802548825741,-0.099188297986984,-0.095371782779694,-0.448359549045563,-0.126364856958389,0.009391795843840) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.078264847397804,0.015371525660157,-0.154649734497070,-0.081840246915817,0.099479719996452,0.105533190071583,0.077615685760975,-0.046727355569601,0.190473154187202,0.142892196774483,0.060338545590639,-0.134497895836830,0.113636814057827,-0.053672872483730,-0.122520796954632,0.158547207713127) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.064701385796070,0.100183442234993,0.035139627754688,0.093515455722809,-0.101285077631474,0.012177103199065,-0.001027171267197,-0.005720399320126,0.130128443241119,0.237003266811371,0.106409378349781,-0.039806161075830,-0.047104664146900,0.189869314432144,-0.005223350133747,0.061067678034306) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.150445446372032,0.315486371517181,-0.061919055879116,0.126962736248970,0.109676398336887,-0.258753806352615,-0.037981271743774,0.076721087098122,0.191212922334671,0.040481485426426,0.200616315007210,0.069493114948273,0.002513502724469,0.201037824153900,0.108334563672543,0.028836885467172) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.009009944275022,0.184952110052109,-0.136771619319916,0.168744131922722,0.027071680873632,0.085173130035400,0.110738836228848,-0.019112892448902,0.021117266267538,0.049703441560268,-0.072492636740208,-0.055609360337257,-0.125268161296844,0.088859319686890,0.014737210236490,0.134106457233429) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.000937168428209,0.069285914301872,-0.185707256197929,-0.032068926841021,0.130953893065453,-0.071714192628860,0.060549866408110,0.105571053922176,-0.053151618689299,0.039053618907928,0.201004952192307,0.253276914358139,-0.025047035887837,0.086075127124786,0.045655969530344,-0.332534521818161) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.152365073561668,0.160516604781151,-0.332823008298874,0.019455404952168,0.221086099743843,-0.290086776018143,-0.079168066382408,-0.023781085386872,-0.002508331788704,0.204102218151093,-0.223742842674255,-0.068329855799675,0.116531208157539,-0.087271846830845,0.318299829959869,-0.021282665431499) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.121914573013783,0.161710724234581,-0.187270268797874,-0.054297365248203,0.017077514901757,0.017343793064356,0.083651237189770,0.052811671048403,0.041569940745831,0.134443014860153,0.029054142534733,0.027454720810056,-0.099503844976425,0.021386019885540,0.235920727252960,0.027821542695165) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.009728774428368,0.222620308399200,-0.127432808279991,0.080674588680267,-0.094489745795727,-0.140441149473190,0.111593700945377,0.069252088665962,-0.132447510957718,0.024529475718737,0.135905250906944,0.107126586139202,-0.023581614717841,0.052610993385315,-0.051095236092806,-0.109334215521812) * MODEL9_texOff(vec2(1,0));
res += mat4(0.059336397796869,0.137029156088829,-0.015502229332924,-0.082589156925678,-0.101512268185616,-0.057156700640917,0.080146916210651,-0.029013870283961,-0.371543079614639,0.109569936990738,0.029512880370021,-0.036124542355537,0.353565961122513,0.082802884280682,-0.124279975891113,0.061336196959019) * MODEL9_texOff(vec2(1,1));
res += mat4(0.079063743352890,-0.021431069821119,0.116734325885773,-0.030208863317966,-0.044972721487284,-0.037026271224022,-0.042323958128691,-0.188852027058601,0.015562892891467,0.060219418257475,0.059601183980703,-0.020677845925093,-0.023469954729080,-0.052483316510916,-0.056569058448076,-0.055417016148567) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.245010420680046,0.094535067677498,0.363284975290298,0.285612523555756,-0.074968129396439,-0.101052299141884,-0.079518221318722,-0.225445851683617,0.000524034956470,0.038574792444706,-0.001225810614415,0.063943527638912,-0.059204142540693,0.026492707431316,-0.017260262742639,0.113646231591702) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.038521803915501,-0.005038971547037,0.142937421798706,0.170062035322189,0.097667314112186,-0.062161263078451,0.037931334227324,0.026964476332068,-0.038697645068169,0.039170317351818,-0.007398683577776,-0.043394390493631,-0.051518332213163,-0.016227615997195,-0.085006646811962,-0.022204112261534) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.113582707941532,-0.049237627536058,0.037887983024120,0.245773196220398,-0.031199382618070,-0.000875246361829,0.026135543361306,-0.009507280774415,0.055943515151739,-0.075441874563694,0.179190739989281,-0.307899087667465,-0.085009202361107,-0.039569903165102,-0.213878303766251,0.217440560460091) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.254926621913910,0.234515830874443,-0.221871912479401,-0.318036913871765,0.086786456406116,0.012545531615615,0.001871544052847,-0.090668469667435,-0.053159467875957,-0.123578026890755,0.047252163290977,0.122440084815025,-0.093126565217972,-0.018031015992165,-0.169755607843399,-0.264254271984100) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.066842697560787,-0.112641863524914,-0.086884938180447,0.035330429673195,0.057498630136251,0.014250918291509,-0.341320097446442,0.028155999258161,0.055233594030142,-0.063747838139534,0.034156072884798,0.044523108750582,0.022277075797319,0.032167602330446,0.194684103131294,-0.203660473227501) * MODEL10_texOff(vec2(0,1));
res += mat4(0.070298530161381,-0.011653746478260,0.052166707813740,0.108840323984623,0.036215532571077,-0.085365563631058,-0.076045386493206,-0.079463429749012,0.021083610132337,-0.083263337612152,0.117155969142914,0.008230553008616,0.115274414420128,0.048822194337845,0.104296073317528,0.034361537545919) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.043836496770382,-0.126290366053581,-0.353574812412262,-0.138767585158348,-0.135474711656570,-0.138588413596153,-0.107675276696682,0.047007769346237,0.012157482095063,-0.001846398692578,-0.075282014906406,0.163576513528824,0.097766742110252,0.110855601727962,-0.043853726238012,-0.065604440867901) * MODEL10_texOff(vec2(1,0));
res += mat4(0.022552773356438,0.053147986531258,0.017633449286222,-0.105660445988178,-0.106368824839592,-0.116226829588413,-0.096425443887711,-0.109645344316959,-0.030322493985295,0.087550945580006,-0.005961112678051,0.029446607455611,0.004577678628266,0.013681826181710,-0.063417337834835,-0.046201687306166) * MODEL10_texOff(vec2(1,1));
res += mat4(0.066609568893909,0.044094149023294,-0.024803329259157,-0.030380770564079,-0.037178475409746,-0.134177163243294,0.120745427906513,-0.119041837751865,-0.043453510850668,-0.006778796203434,0.046285279095173,-0.067491039633751,0.058375246822834,-0.055554971098900,-0.052159775048494,0.067594066262245) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.058985862880945,0.158411324024200,-0.064765587449074,0.058977633714676,-0.089389078319073,-0.233434513211250,0.181324094533920,0.023781133815646,0.053699027746916,0.112671144306660,0.068656250834465,0.125625401735306,-0.207438170909882,-0.129102721810341,-0.351612687110901,-0.106621623039246) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.048188269138336,-0.115594483911991,-0.052459809929132,0.040704846382141,-0.033921904861927,-0.017811462283134,-0.092371448874474,-0.059651784598827,0.051396735012531,0.171948596835136,-0.154557794332504,0.120619073510170,-0.001526619889773,0.011557825841010,0.153809890151024,-0.082774870097637) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.005208513233811,0.179085507988930,-0.061064176261425,-0.052927419543266,-0.142693221569061,-0.111064128577709,0.058433845639229,0.022979596629739,-0.079185076057911,-0.073669120669365,-0.008489508181810,0.150477066636086,0.147404521703720,-0.036501485854387,0.063016548752785,0.030552079901099) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.037595272064209,0.302115023136139,-0.202509149909019,-0.185713112354279,-0.212422326207161,-0.111805163323879,0.029482385143638,-0.131585672497749,-0.327059060335159,-0.243616908788681,-0.132493987679482,-0.200372785329819,0.375672012567520,0.353506267070770,-0.291449308395386,-0.310494393110275) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.058684494346380,-0.314196854829788,-0.024818338453770,0.009333891794086,0.219188183546066,0.067627325654030,0.066265791654587,-0.087241202592850,0.106408439576626,0.054655760526657,0.292093783617020,-0.163767367601395,0.033110182732344,0.111033394932747,-0.215451776981354,0.065694190561771) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.060536012053490,-0.166400372982025,0.138433322310448,0.006176631432027,0.159765869379044,0.047072451561689,-0.051866877824068,-0.024984605610371,0.072061777114868,0.015512957237661,-0.070672355592251,0.148884177207947,-0.102596305310726,0.094811476767063,0.017666053026915,0.012816997244954) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.141224950551987,-0.040561132133007,0.082619391381741,-0.172403886914253,0.029447136446834,0.182926267385483,-0.452739447355270,-0.156363546848297,-0.277609705924988,-0.071042872965336,0.157243594527245,-0.007718218490481,-0.146529212594032,0.035002838820219,0.272290587425232,0.200317844748497) * MODEL11_texOff(vec2(1,0));
res += mat4(0.082608439028263,0.016086561605334,0.142361819744110,-0.047752499580383,-0.002656400902197,-0.021771177649498,-0.136852324008942,0.033953927457333,-0.061036005616188,-0.126357153058052,0.233473449945450,-0.024938745424151,-0.039159696549177,0.112371303141117,-0.078205041587353,0.109613135457039) * MODEL11_texOff(vec2(1,1));
res += mat4(0.041084732860327,-0.098754793405533,0.042252413928509,0.093860641121864,0.042772863060236,0.021191477775574,0.024453422054648,-0.057994563132524,0.140720576047897,-0.105577871203423,0.230921551585197,0.117159068584442,0.082910731434822,0.023260341957211,0.104178540408611,-0.052952360361814) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.031475260853767,-0.433621972799301,-0.083862364292145,-0.135725170373917,0.114885464310646,0.006928313057870,0.204000324010849,0.133008614182472,-0.015355846844614,-0.028853207826614,0.014145378023386,0.054533503949642,0.251666456460953,0.136554241180420,0.311229020357132,0.257405906915665) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.005775549914688,-0.313803136348724,0.159551069140434,-0.175483897328377,-0.021289905533195,0.094005100429058,0.202503919601440,-0.079875074326992,-0.000311225740006,0.112649545073509,0.081812806427479,0.007899997755885,0.068784616887569,-0.031263280659914,-0.119475871324539,0.111390024423599) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.136155247688293,-0.118029572069645,0.134538009762764,-0.069672055542469,-0.136731788516045,0.012272043153644,0.070507131516933,0.104474209249020,0.050752930343151,0.151961714029312,-0.268042922019958,-0.119599096477032,-0.147908627986908,0.099133431911469,-0.114338822662830,0.048871029168367) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.176260754466057,-0.204427257180214,-0.015500485897064,-0.092410229146481,0.010886454954743,-0.198609605431557,-0.042873676866293,0.116051308810711,0.057133942842484,0.088759623467922,-0.197651043534279,0.018492005765438,-0.146740466356277,0.018661510199308,-0.063170775771141,-0.041512642055750) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.059127271175385,-0.266000300645828,-0.065138436853886,0.096011891961098,0.111611314117908,0.019076034426689,0.145499438047409,-0.130686476826668,0.010913544334471,0.436943858861923,-0.016685103997588,-0.186520397663116,0.022718610242009,-0.103679783642292,0.021979685872793,-0.043269373476505) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.151930212974548,-0.121691018342972,0.199700981378555,-0.084782697260380,-0.047583866864443,-0.016441185027361,-0.086142756044865,-0.016858262941241,0.181500047445297,-0.042470104992390,0.252182364463806,-0.090212069451809,-0.013503783382475,-0.068486481904984,-0.086407274007797,-0.069735422730446) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.075527660548687,-0.099903181195259,0.081241153180599,0.009734489023685,0.038016393780708,-0.031893987208605,0.006839733570814,-0.070125654339790,-0.024153985083103,-0.033960152417421,0.126836329698563,-0.122693657875061,0.118180975317955,-0.028485449030995,-0.139930054545403,0.178549379110336) * MODEL12_texOff(vec2(1,0));
res += mat4(0.016334790736437,0.025642700493336,0.025752950459719,-0.048022545874119,-0.039425056427717,-0.123483300209045,0.035929091274738,-0.040158666670322,-0.099014252424240,0.146223604679108,-0.107123121619225,-0.046216230839491,-0.094912081956863,0.005191341973841,0.051244553178549,0.082171507179737) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.200179889798164,-0.004675035364926,0.009253569878638,0.187817171216011) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 3_3

vec4 hook()
{
vec4 res = vec4(0.044851709157228,0.007852989248931,-0.056466978043318,0.009239403530955);
res += mat4(-0.039314098656178,0.223007708787918,-0.319264709949493,-0.184283316135406,-0.087390206754208,-0.058278918266296,0.049751337617636,0.064751476049423,0.223757565021515,-0.073419205844402,0.145462483167648,0.039620473980904,-0.099582076072693,0.083576098084450,0.061803370714188,0.043804496526718) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.051042269915342,-0.095343060791492,0.130327090620995,0.108192659914494,0.045714031904936,-0.020557034760714,-0.151054605841637,-0.166038110852242,0.081213444471359,-0.083066113293171,-0.118187554180622,-0.058390211313963,0.095521226525307,0.147095099091530,0.067835360765457,0.040359437465668) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.127466186881065,0.018311765044928,0.141792386770248,0.164341807365417,0.006135344039649,0.165123715996742,-0.026371935382485,-0.011786007322371,-0.062973655760288,-0.103252336382866,-0.050657499581575,-0.008575747720897,0.184726625680923,0.093522220849991,0.113315664231777,0.094101592898369) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.214100584387779,0.009674509987235,-0.027835415676236,-0.064405299723148,0.122479669749737,-0.082810662686825,-0.169145449995995,0.108662955462933,0.078422665596008,-0.481741964817047,0.106542289257050,0.201418578624725,0.065576270222664,-0.000828691234346,0.067437119781971,0.126262411475182) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.068604007363319,0.072267316281796,0.012503453530371,0.017814874649048,0.158642053604126,0.070459127426147,0.123293824493885,-0.116944961249828,-0.292512118816376,0.196225777268410,-0.094720914959908,-0.261502921581268,0.156483680009842,0.051752172410488,0.288849323987961,0.017111437395215) * MODEL7_texOff(vec2(0,0));
res += mat4(0.104882203042507,0.201334804296494,0.094606675207615,0.072192542254925,-0.048422668129206,0.285860657691956,-0.214807167649269,-0.321741223335266,-0.139928266406059,0.058967575430870,-0.164290368556976,-0.165794834494591,0.230419218540192,0.062772184610367,0.310592085123062,0.105391971766949) * MODEL7_texOff(vec2(0,1));
res += mat4(0.159399479627609,-0.109728664159775,0.058100540190935,0.028798736631870,-0.169329822063446,0.035043362528086,-0.055977780371904,-0.103082410991192,-0.091291978955269,-0.065063484013081,-0.348506182432175,-0.075167991220951,0.018061166629195,0.089622907340527,0.168698385357857,-0.009877233766019) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.398121476173401,-0.136431917548180,-0.094145871698856,-0.264566242694855,0.060553345829248,0.103447586297989,-0.002864475362003,0.040055412799120,0.081869401037693,-0.018352217972279,-0.033769719302654,0.003369071055204,0.127060994505882,0.070184633135796,0.162618771195412,0.093511387705803) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.010109012946486,0.130427986383438,-0.044410720467567,-0.065745614469051,0.166292920708656,0.058858983218670,-0.053961545228958,-0.075078055262566,-0.029574567452073,-0.150698333978653,-0.001190894166939,-0.147403910756111,0.122807778418064,0.087233781814575,0.149324283003807,0.038858275860548) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.056042343378067,0.119706064462662,-0.146766200661659,-0.044775363057852,0.135555475950241,0.154174640774727,0.022919258102775,0.008071610704064,0.000269803189440,0.120845384895802,-0.116475790739059,-0.027848556637764,0.001124628586695,0.068981625139713,0.035163354128599,0.004438152536750) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.407672464847565,0.160585314035416,-0.034138295799494,0.012267082929611,-0.004429011140019,-0.076849654316902,0.006441275589168,0.013728207908571,-0.238528266549110,0.159570172429085,0.135294631123543,-0.002276384038851,-0.179103106260300,-0.103426411747932,-0.013039128854871,-0.057330410927534) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.346888393163681,0.000836090941448,-0.015219463966787,0.037739206105471,0.146393850445747,-0.167574957013130,0.041172407567501,0.057375270873308,-0.024345861747861,-0.089168936014175,-0.101555094122887,-0.020985247567296,0.012048951350152,-0.128732338547707,-0.071246057748795,0.121201820671558) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.095942787826061,0.003803240135312,-0.062150005251169,0.012781372293830,-0.067317672073841,0.122485108673573,-0.273011684417725,-0.027720980346203,-0.125257968902588,0.220230743288994,0.148038640618324,-0.033440463244915,0.022468410432339,0.015792859718204,-0.150216206908226,0.106538370251656) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.185702830553055,0.212003052234650,0.120921149849892,-0.007694299798459,-0.109455943107605,-0.267508000135422,-0.072485409677029,-0.077181383967400,0.225353538990021,-0.070227228105068,-0.178195834159851,-0.011792828328907,-0.217916220426559,0.070161946117878,0.000394920789404,-0.132933601737022) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.070399515330791,-0.007799011655152,-0.011155098676682,-0.180078834295273,0.071999222040176,0.041564863175154,0.053656149655581,0.032432880252600,0.101893849670887,-0.175617545843124,0.268023610115051,0.257285207509995,0.054085273295641,-0.107671372592449,-0.015048759058118,0.119087465107441) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.255929857492447,0.036860354244709,-0.066271744668484,0.015457825735211,0.161582291126251,-0.108220510184765,0.063704408705235,0.155220806598663,0.194713085889816,-0.041696459054947,-0.039107292890549,0.198530405759811,-0.049601085484028,-0.192357242107391,-0.069350466132164,0.108577251434326) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.320167452096939,0.182607814669609,0.017398405820131,-0.099650546908379,-0.159147083759308,0.072405166924000,0.101748101413250,-0.054262958467007,-0.086629934608936,-0.230774864554405,-0.028591873124242,-0.181980371475220,-0.019339561462402,-0.086871229112148,0.068626083433628,0.104576796293259) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.147240728139877,0.021578375250101,0.055098284035921,0.060294959694147,0.084208376705647,-0.011837741360068,0.024309733882546,0.104815222322941,-0.291340947151184,0.017474584281445,-0.047587335109711,0.021554199978709,-0.066939763724804,0.028336424380541,0.140018239617348,0.113609842956066) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.243756398558617,0.127908557653427,0.026925228536129,-0.056783281266689,0.026963144540787,0.074697896838188,0.065630316734314,-0.065694727003574,-0.050209209322929,0.026426725089550,0.076109521090984,-0.052950747311115,-0.151270970702171,-0.043021179735661,-0.234339520335197,-0.120216183364391) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.072080366313457,0.011186531744897,-0.001157325692475,-0.155609786510468,-0.083369404077530,-0.096359752118587,0.081938624382019,0.035425525158644,0.009262843057513,-0.077705368399620,0.064174823462963,-0.000699259631801,-0.056224476546049,-0.048622172325850,-0.153390631079674,-0.094718024134636) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.115563943982124,-0.142201811075211,-0.138542771339417,-0.115141853690147,0.060279302299023,0.145962834358215,-0.080648772418499,0.006027083378285,-0.214819580316544,0.117169752717018,0.005883463192731,-0.261176496744156,0.241878211498260,0.044009167701006,0.084411904215813,0.075890526175499) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.191122800111771,-0.186205372214317,-0.268187433481216,-0.059644956141710,0.057219117879868,-0.017146745696664,0.012003985233605,0.012762336060405,0.146411895751953,0.169600635766983,0.061092168092728,-0.035371318459511,-0.155706733465195,0.009083689190447,-0.110515192151070,0.192118763923645) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.082765899598598,-0.111146554350853,-0.035391148179770,-0.117394305765629,0.092731237411499,-0.004672717303038,0.002932698698714,0.062240310013294,0.020936883985996,-0.067760966718197,0.270376324653625,0.150837451219559,-0.421538233757019,-0.181655421853065,-0.025465019047260,-0.344457626342773) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.088021785020828,-0.116597652435303,0.012725192122161,0.036615587770939,0.213911354541779,0.197347417473793,-0.247540622949600,-0.001233686809428,-0.108700670301914,-0.136263713240623,-0.030255479738116,0.030904650688171,0.054687168449163,-0.009216354228556,-0.057246711105108,-0.247563198208809) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.337147742509842,-0.143367126584053,-0.170293495059013,-0.195747807621956,0.043523870408535,0.046496525406837,0.057933799922466,-0.009063226170838,0.053576644510031,0.147208407521248,0.179875776171684,0.046639520674944,0.186854466795921,0.011771358549595,-0.004537952132523,0.164826720952988) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.063520736992359,0.049601983278990,-0.190889835357666,-0.274811804294586,0.049098122864962,-0.096739411354065,0.068621061742306,0.039081100374460,-0.074602775275707,0.039011999964714,0.136550888419151,-0.030362579971552,0.260359883308411,0.065013729035854,-0.102674797177315,0.150287717580795) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.026900095865130,0.129204764962196,-0.116737827658653,-0.013733098283410,0.105692856013775,-0.102649293839931,0.044011786580086,-0.002885179594159,-0.135255590081215,0.080698452889919,0.196063041687012,0.078717574477196,0.289802581071854,-0.059898134320974,0.110387474298477,0.188538119196892) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.025425046682358,0.134432598948479,0.117072656750679,0.067738004028797,0.092269994318485,-0.210303723812103,0.103622272610664,-0.014835817739367,0.027869157493114,0.017325315624475,0.074944056570530,0.093651346862316,-0.157863959670067,0.042548708617687,-0.067624963819981,-0.025831932201982) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.081889852881432,-0.181498304009438,0.132033750414848,-0.137764006853104,-0.049969755113125,-0.134772658348083,0.185374394059181,0.088516347110271,0.186589658260345,-0.128791883587837,-0.015907887369394,-0.026006450876594,0.019016625359654,-0.105720274150372,-0.070552378892899,-0.101469025015831) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.044217206537724,0.046196281909943,-0.055214282125235,-0.109186805784702,0.043774675577879,-0.035207163542509,-0.082844451069832,0.009004242718220,-0.004737601149827,0.009589238092303,-0.047547850757837,0.035789582878351,0.099086441099644,-0.084589637815952,-0.016950054094195,0.069087296724319) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.174664482474327,-0.195099011063576,0.074661023914814,0.248305127024651,0.111009895801544,-0.202477037906647,0.118939206004143,0.075595140457153,0.224978730082512,0.044142633676529,-0.028638508170843,-0.021411580964923,0.051336515694857,-0.240448549389839,-0.193471252918243,0.249611333012581) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.196442037820816,-0.214146867394447,-0.267236948013306,-0.397268921136856,-0.146553844213486,0.013667638413608,0.047401614487171,0.109375037252903,0.037606559693813,-0.011807649396360,0.184284180402756,0.072507761418819,-0.122390009462833,-0.151244431734085,0.227077871561050,-0.288609176874161) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.033442486077547,-0.048845209181309,0.065290138125420,0.059884298592806,-0.156747445464134,-0.162233591079712,0.004188432358205,-0.084577068686485,-0.084974274039268,0.029019067063928,-0.033836819231510,-0.033425353467464,0.063576519489288,0.131711229681969,-0.032620776444674,-0.119562521576881) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.131957396864891,-0.204646110534668,-0.116565763950348,0.019754709675908,-0.173049822449684,-0.000467638950795,0.086309812963009,0.142761245369911,0.143144980072975,0.133631989359856,0.162786781787872,-0.137260362505913,-0.037752628326416,-0.005341750103980,-0.049133364111185,-0.016370518133044) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.052901957184076,0.247436583042145,0.108886934816837,0.162882462143898,0.079029940068722,-0.165655255317688,-0.086713023483753,0.022065933793783,-0.044571753591299,0.033244732767344,0.039899569004774,-0.061165947467089,0.062221359461546,0.190946668386459,0.043982956558466,0.192879691720009) * MODEL10_texOff(vec2(1,0));
res += mat4(0.036916047334671,-0.022131055593491,0.038871161639690,0.191247954964638,0.019420392811298,-0.246226742863655,0.086572386324406,0.084947645664215,-0.031818926334381,0.010621041059494,-0.116639055311680,-0.007612965069711,0.000852605735417,0.047538012266159,0.027782600373030,-0.055612284690142) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.097923874855042,-0.005073482636362,-0.087877288460732,0.128542825579643,-0.176485493779182,0.176984935998917,0.047218751162291,-0.043507512658834,-0.091577492654324,0.039289657026529,0.140116110444069,-0.082329988479614,-0.005871748086065,-0.115142546594143,-0.140105232596397,-0.090492084622383) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.030317679047585,0.110715501010418,0.022749483585358,0.030968101695180,-0.032186638563871,-0.422769635915756,-0.019623622298241,0.183775186538696,0.033330474048853,-0.053079657256603,-0.130777150392532,-0.058218553662300,-0.116305902600288,0.100956089794636,0.108164101839066,0.241853192448616) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.053140953183174,0.069235607981682,-0.106056645512581,-0.081751868128777,0.073686465620995,0.250532597303391,-0.022290537133813,-0.012793303467333,-0.010035608895123,0.154399067163467,-0.007241281215101,0.032275609672070,-0.046936757862568,0.019488589838147,0.080437958240509,0.007917395792902) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.123021908104420,0.084095321595669,-0.290882200002670,-0.002416760427877,-0.075827360153198,0.048576608300209,0.264590740203857,0.030774204060435,0.080002725124359,-0.181210935115814,-0.004124729894102,0.259734094142914,-0.081845648586750,0.027389207854867,-0.075615696609020,0.105948589742184) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.119099222123623,-0.147571161389351,-0.294870615005493,-0.089114114642143,-0.050919637084007,-0.295344710350037,-0.007543227635324,-0.183912724256516,-0.139638960361481,-0.143138676881790,0.212218701839447,-0.047305822372437,0.083152733743191,-0.394414931535721,-0.285393208265305,-0.299334585666656) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.017873093485832,-0.094229333102703,0.054502114653587,0.139894664287567,0.029012937098742,0.300502449274063,-0.090522773563862,-0.230886876583099,-0.116332456469536,0.445950359106064,-0.237971678376198,-0.217133924365044,0.052790194749832,-0.070235535502434,0.212141707539558,0.138622269034386) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.052013140171766,0.215974286198616,-0.086207285523415,-0.268530935049057,-0.325577080249786,-0.028837837278843,-0.160473451018333,0.035598024725914,0.131861224770546,-0.077406972646713,-0.060757685452700,0.136358201503754,0.123053617775440,-0.024109821766615,0.197239220142365,0.032939340919256) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.117101371288300,-0.105686396360397,-0.214067295193672,0.172470360994339,0.334265440702438,0.130710765719414,0.096327185630798,0.248852267861366,-0.164494022727013,-0.141042619943619,-0.022632086649537,-0.139140471816063,-0.142479956150055,-0.075189039111137,-0.003524507163092,-0.120440617203712) * MODEL11_texOff(vec2(1,0));
res += mat4(0.151423290371895,-0.228982478380203,0.101741209626198,-0.033062871545553,0.112313918769360,-0.033122174441814,0.101093225181103,0.092999994754791,0.017298458144069,0.069244958460331,-0.063007056713104,-0.171020239591599,-0.089181825518608,0.223667383193970,0.082384899258614,0.060086585581303) * MODEL11_texOff(vec2(1,1));
res += mat4(0.113135740160942,-0.313785046339035,-0.034579243510962,0.074704997241497,-0.174237608909607,-0.082880035042763,0.209169790148735,-0.093071989715099,-0.077177703380585,-0.078180752694607,-0.093783229589462,0.051514357328415,-0.316368609666824,0.070559889078140,-0.081761434674263,-0.070291832089424) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.086437299847603,0.115967325866222,0.146652057766914,0.188892513513565,0.116047367453575,-0.109394580125809,-0.156197160482407,-0.088928759098053,0.057303652167320,-0.146348550915718,-0.112823277711868,0.040800306946039,0.008192655630410,-0.036598816514015,-0.165560543537140,-0.280858337879181) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.126452937722206,-0.236099004745483,0.064058504998684,0.048702243715525,0.054978698492050,0.126263409852982,0.126181423664093,0.108423963189125,0.077621847391129,-0.193525925278664,0.189514219760895,0.155866429209709,0.063904583454132,-0.184979945421219,0.022865861654282,0.120216488838196) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.021322557702661,-0.157419666647911,-0.116310849785805,0.117406517267227,0.063450030982494,-0.159593418240547,0.059777300804853,0.052876587957144,0.326612234115601,-0.138561353087425,-0.219512343406677,0.038583993911743,-0.008340933360159,-0.204569429159164,-0.188341870903969,-0.064930841326714) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.178956300020218,-0.025066521018744,0.156057700514793,0.120055414736271,0.160562217235565,0.106055967509747,0.111776821315289,0.066162385046482,0.150086805224419,-0.067083083093166,-0.019218746572733,-0.001673971419223,-0.201935142278671,0.311753064393997,0.119781948626041,0.128187522292137) * MODEL12_texOff(vec2(0,0));
res += mat4(0.053752347826958,-0.264522224664688,0.105252124369144,0.084824636578560,-0.035579465329647,0.385542213916779,-0.193701177835464,-0.233612373471260,-0.216323539614677,-0.402378797531128,-0.129820317029953,-0.220909461379051,-0.114344127476215,-0.079443082213402,-0.185253903269768,0.115754023194313) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.026034386828542,0.039286885410547,0.199254557490349,-0.110260851681232,-0.123846292495728,-0.051767218858004,0.066742897033691,0.030756134539843,-0.050113044679165,-0.160556823015213,0.029918320477009,-0.110975019633770,0.101880185306072,-0.030569836497307,-0.394117385149002,-0.114126339554787) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.093080364167690,-0.038807976990938,0.049251958727837,-0.021006343886256,-0.078122489154339,-0.019106261432171,-0.143960878252983,0.039957936853170,0.046925086528063,-0.171061679720879,-0.184760302305222,-0.004644636064768,0.100921630859375,-0.006894043646753,0.023328894749284,0.127053201198578) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.004430069122463,0.048269987106323,-0.012342610396445,0.009017030708492,-0.017691887915134,-0.072313204407692,-0.075798816978931,-0.098108701407909,0.214047983288765,-0.091972686350346,-0.150346174836159,0.044008105993271,0.042472500354052,-0.103818960487843,-0.053673315793276,-0.186968147754669) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.055173046886921,-0.129229232668877,-0.073022939264774,-0.017341759055853) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 3_4

vec4 hook()
{
vec4 res = vec4(0.144415438175201,0.068010360002518,-0.078685276210308,-0.017958285287023);
res += mat4(-0.096740275621414,-0.040968731045723,0.097746759653091,0.013204714283347,0.012598278000951,-0.029320543631911,-0.139140933752060,0.025431733578444,0.124030023813248,-0.078546352684498,-0.563788354396820,-0.032081313431263,-0.142641618847847,-0.034452054649591,0.047753494232893,0.016016984358430) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.015555013902485,-0.130583927035332,-0.108836740255356,-0.069264508783817,-0.295060724020004,0.074792429804802,0.125300377607346,0.062981918454170,-0.235639259219170,0.141678616404533,0.212392836809158,0.038734104484320,0.063786081969738,0.046793438494205,0.241689741611481,0.002229646313936) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.062563307583332,0.057718396186829,0.146505117416382,0.060532383620739,-0.033416330814362,0.005764320492744,0.063107520341873,0.158769324421883,-0.296016484498978,-0.099162280559540,-0.141938298940659,0.110992394387722,0.049767740070820,-0.029766032472253,0.097142361104488,0.068026609718800) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.041271951049566,0.049014795571566,0.065976053476334,0.046000391244888,-0.093000851571560,0.041387721896172,-0.095881633460522,-0.034271717071533,0.076169483363628,-0.038145933300257,-0.417857706546783,0.172001510858536,0.007755608297884,0.000304886605591,-0.030336145311594,0.034871328622103) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.033159751445055,0.166663810610771,-0.045756109058857,0.060603819787502,0.000374675815692,0.042176563292742,-0.075148783624172,0.139099597930908,0.095485903322697,0.058610629290342,0.170045360922813,-0.039179481565952,0.000307610025629,0.010103961452842,0.217896401882172,0.201403602957726) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.091292351484299,0.044356945902109,0.064065121114254,0.146071791648865,0.117748700082302,0.023135103285313,-0.175730913877487,-0.094183988869190,0.099072888493538,-0.155220448970795,0.041791427880526,-0.199677124619484,-0.140399083495140,-0.044176410883665,0.054599463939667,0.111917071044445) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.243091419339180,-0.010317551903427,-0.016944749280810,-0.269121736288071,0.037004847079515,-0.013524081557989,-0.076759561896324,-0.007104693911970,-0.012986553832889,0.040618587285280,-0.191725894808769,0.073921225965023,0.008753463625908,0.000669862609357,-0.084460631012917,-0.034440647810698) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.451389253139496,0.016442997381091,0.104836903512478,-0.304474264383316,0.059969097375870,-0.019372222945094,-0.085409402847290,0.077031753957272,-0.010488323867321,0.015569179318845,-0.131779387593269,0.019508577883244,0.070437021553516,0.025483978912234,0.062550842761993,0.095856659114361) * MODEL7_texOff(vec2(1,0));
res += mat4(0.150714457035065,0.093863405287266,-0.074586853384972,0.051985971629620,0.045758090913296,0.035030540078878,0.106955409049988,0.000055714641348,-0.197544485330582,0.010227563790977,0.147136747837067,-0.190034613013268,0.074042439460754,0.043739330023527,0.034397009760141,0.051212951540947) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.198433071374893,-0.049201145768166,0.250346064567566,0.176715627312660,-0.011315772309899,-0.113939233124256,0.147453799843788,0.070594914257526,-0.111769996583462,-0.111815251410007,0.025037337094545,0.213157460093498,-0.056239534169436,-0.004190163221210,-0.138130009174347,0.064876720309258) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.338306754827499,-0.130657047033310,-0.171642929315567,0.127391889691353,-0.030491486191750,-0.168344169855118,-0.054039902985096,-0.026380512863398,-0.176878079771996,0.002959275618196,-0.231759384274483,0.043005645275116,-0.247819378972054,-0.055427603423595,0.038651451468468,-0.106443196535110) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.358966737985611,0.001332837739028,-0.028175557032228,0.206189751625061,0.028689568862319,0.018521768972278,-0.064769804477692,0.020540241152048,-0.147982880473137,-0.064924292266369,-0.078434735536575,-0.035293933004141,-0.129720509052277,-0.054198488593102,0.135518521070480,0.110648259520531) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.173242956399918,-0.076692782342434,-0.014670160599053,-0.123375527560711,0.151002034544945,0.093487940728664,0.080986596643925,0.004320351406932,-0.166273593902588,0.006964077241719,-0.224410191178322,-0.201473593711853,-0.095853298902512,-0.002964869141579,-0.089238457381725,0.112315244972706) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.100370354950428,-0.162749320268631,0.031758222728968,-0.282178074121475,-0.077259190380573,-0.039237882941961,-0.037789169698954,-0.017101559787989,-0.006847048178315,0.027170769870281,-0.039913896471262,-0.205650225281715,0.123819150030613,0.132534161210060,0.101086489856243,0.062003597617149) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.109627217054367,-0.061267741024494,0.051223654299974,-0.227120056748390,0.154208764433861,0.072732396423817,-0.194184064865112,0.083668500185013,0.007281207013875,-0.049299605190754,-0.087386220693588,0.084388442337513,0.088788062334061,-0.032519944012165,-0.131612047553062,-0.170906469225883) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.077167071402073,-0.043531458824873,-0.057182636111975,-0.220353588461876,0.155971854925156,0.076334439218044,0.128878489136696,-0.012663703411818,0.090178325772285,-0.020911376923323,0.041022971272469,-0.005020517390221,-0.019218843430281,-0.011294155381620,-0.162478908896446,0.024134568870068) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.120421752333641,-0.085013173520565,0.064243152737617,-0.234988406300545,-0.022469541057944,0.041385412216187,0.087960958480835,0.032352656126022,-0.153622969985008,-0.041847784072161,0.045650307089090,-0.256779670715332,-0.203599289059639,-0.006062785629183,0.223369568586349,-0.342523723840714) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.095556296408176,-0.065721884369850,0.073498874902725,-0.038204990327358,0.019761610776186,0.046157989650965,0.156320214271545,0.078086443245411,-0.311327576637268,-0.078392326831818,-0.197880282998085,-0.203300833702087,-0.275835871696472,-0.046161659061909,0.043492883443832,0.079481862485409) * MODEL8_texOff(vec2(1,1));
res += mat4(0.138108372688293,0.030342329293489,0.164221003651619,0.094638727605343,0.111001126468182,0.038087461143732,-0.079299576580524,0.055160626769066,-0.039729345589876,-0.005566541105509,0.096807204186916,0.062404107302427,-0.194878399372101,0.006447558291256,0.091136768460274,0.344941645860672) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.255382984876633,-0.066388435661793,-0.117101259529591,0.039241943508387,0.051094193011522,0.086271889507771,0.002693304093555,-0.001244632061571,0.088233761489391,-0.087723523378372,-0.297959893941879,-0.048580646514893,-0.273052781820297,-0.049158595502377,-0.041471250355244,0.216981723904610) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.021494273096323,-0.020767839625478,-0.080467715859413,0.044740192592144,0.146836400032043,0.049679659307003,0.210378587245941,0.077651925384998,-0.215684041380882,-0.039930373430252,-0.063144683837891,-0.016314586624503,0.183601781725883,0.062985040247440,-0.050795264542103,-0.097132734954357) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.138733923435211,0.018115537241101,-0.109664700925350,-0.010104024782777,0.141465917229652,0.055913727730513,-0.003704569302499,-0.073685601353645,-0.105993598699570,-0.035688869655132,0.109529107809067,-0.118734754621983,-0.216206699609756,-0.015308232977986,0.166449427604675,-0.288539201021194) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.253050446510315,0.066140726208687,0.214836522936821,-0.009728065691888,0.142816841602325,0.039193015545607,0.149417504668236,0.153306961059570,-0.060970537364483,0.224089801311493,-0.158895432949066,0.129142373800278,-0.049444753676653,-0.180649086833000,0.077973522245884,-0.060101926326752) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.026437997817993,-0.039530389010906,0.028699705377221,0.123718962073326,0.257690250873566,-0.058041337877512,0.242238655686378,0.036099161952734,-0.001779109123163,-0.148687914013863,-0.335130631923676,-0.537098228931427,0.208137497305870,0.084338314831257,-0.031401187181473,0.306161165237427) * MODEL9_texOff(vec2(0,1));
res += mat4(0.191796764731407,0.009896741248667,0.020438227802515,0.007357190828770,-0.056301046162844,0.042091798037291,-0.017318960279226,-0.026243418455124,0.141958504915237,-0.013677192851901,-0.044325429946184,0.050541248172522,0.045999541878700,-0.013523616828024,0.274202883243561,-0.124274745583534) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.139269500970840,-0.008825080469251,0.109146222472191,-0.030635625123978,-0.047088366001844,0.090763054788113,0.232431873679161,0.070820130407810,0.143250107765198,0.008348184637725,0.112068168818951,0.062782943248749,0.039211418479681,-0.001043011900038,0.013332705944777,0.001552187022753) * MODEL9_texOff(vec2(1,0));
res += mat4(0.045064128935337,-0.059286125004292,0.005149073898792,-0.142540380358696,-0.074277505278587,-0.007101203780621,0.313558161258698,0.129207000136375,0.148433133959770,-0.012358032166958,0.050338454544544,0.095714703202248,-0.054968424141407,-0.040525425225496,-0.049899984151125,0.085795663297176) * MODEL9_texOff(vec2(1,1));
res += mat4(0.129613608121872,-0.019184660166502,-0.073656387627125,-0.136075347661972,0.003612720640376,0.009774555452168,0.192713141441345,-0.151265680789948,0.092466421425343,0.030084682628512,0.191423669457436,-0.034102719277143,0.012021964415908,-0.123598515987396,-0.094838581979275,-0.013311944901943) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.192072451114655,-0.090668089687824,0.032259587198496,-0.518197774887085,0.057305682450533,-0.010593077167869,0.019449140876532,0.144745975732803,0.000485557306092,0.082176141440868,0.178319185972214,-0.091950699687004,-0.201239526271820,-0.251074761152267,-0.205345794558525,-0.061744038015604) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.057690050452948,-0.045940108597279,-0.012529123574495,-0.101055234670639,-0.091968931257725,0.044964436441660,0.215375512838364,0.145463705062866,0.079828888177872,-0.038246605545282,0.098267547786236,0.003609251929447,-0.002081583021209,0.017970332875848,-0.047279842197895,-0.030046332627535) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.091390505433083,0.013272021897137,-0.124807171523571,0.021401312202215,-0.099694035947323,0.041926082223654,0.048561513423920,-0.013125005178154,0.356950134038925,0.210786640644073,0.043477993458509,-0.020390698686242,0.083805151283741,0.054982088506222,0.048065494745970,-0.041833791881800) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.191571563482285,-0.076065346598625,0.232884109020233,-0.165631592273712,-0.161513388156891,-0.025735279545188,-0.041418377310038,-0.013432580977678,0.176736474037170,0.199439987540245,0.003607005346566,-0.029163457453251,-0.164050415158272,0.305731207132339,0.150361537933350,0.042271997779608) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.274856299161911,-0.028580423444510,-0.222864404320717,-0.037000741809607,-0.174657911062241,-0.065061569213867,0.117433235049248,-0.072449080646038,-0.104151405394077,-0.040441714227200,-0.032931681722403,-0.069225132465363,0.050636537373066,0.128952980041504,0.199937731027603,0.141602352261543) * MODEL10_texOff(vec2(0,1));
res += mat4(0.126689851284027,0.045924548059702,-0.035353429615498,0.068751238286495,0.160412490367889,0.009000253863633,-0.069854028522968,0.073433771729469,-0.054485097527504,0.071057952940464,0.185792535543442,0.128702148795128,-0.110099077224731,0.001124991453253,0.052521005272865,0.022692002356052) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.315671056509018,0.051024179905653,0.078597374260426,0.131606847047806,0.150706425309181,0.003429046832025,0.147042378783226,-0.103840209543705,0.108070731163025,0.017994886264205,-0.025128139182925,0.089293271303177,0.028813783079386,0.068395860493183,0.007765484508127,0.043698180466890) * MODEL10_texOff(vec2(1,0));
res += mat4(0.107934027910233,-0.017162859439850,-0.181318014860153,0.059261992573738,0.234907552599907,-0.005037659779191,-0.256579428911209,0.011125575751066,0.067601330578327,0.028035020455718,0.116765379905701,-0.060307465493679,0.101860269904137,0.023828934878111,0.176291629672050,-0.014887027442455) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.049331851303577,-0.062502294778824,0.112561464309692,-0.137833446264267,-0.014301280491054,0.108128979802132,0.072955593466759,-0.021611163392663,0.151937037706375,-0.100516997277737,-0.189444646239281,-0.034511413425207,-0.045103296637535,0.024080881848931,0.053210109472275,0.036685407161713) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.162028968334198,0.041503123939037,0.040425326675177,-0.188287749886513,0.025323463603854,0.132948085665703,-0.106879159808159,-0.312078207731247,0.004790372215211,-0.090102612972260,0.253405481576920,-0.133984789252281,-0.236062601208687,0.026947855949402,-0.227318495512009,0.453663438558578) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.121997378766537,0.023194577544928,0.049508474767208,-0.068177796900272,-0.057298514991999,0.122618131339550,-0.012792805209756,0.046821512281895,-0.097286283969879,-0.055123735219240,0.088336534798145,-0.010420352220535,-0.193363681435585,0.049991700798273,-0.066401332616806,0.098093897104263) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.152138948440552,0.081286557018757,0.084897018969059,0.164797693490982,-0.216726481914520,-0.089379727840424,0.132022276520729,-0.116355106234550,-0.209238618612289,0.003331154119223,-0.175476998090744,-0.128508210182190,0.250180929899216,-0.028571588918567,0.238269567489624,-0.145351380109787) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.188601598143578,-0.210567831993103,0.061300501227379,0.235905885696411,-0.376141071319580,-0.093153603374958,-0.018696174025536,-0.105562254786491,0.035860646516085,-0.256578028202057,-0.193791970610619,-0.195553541183472,0.084237247705460,-0.205950558185577,0.103083103895187,-0.279213637113571) * MODEL11_texOff(vec2(0,0));
res += mat4(0.054300278425217,0.020251903682947,-0.033418938517570,0.017264187335968,0.120342642068863,0.067244082689285,-0.150673478841782,0.137248709797859,0.114747211337090,0.130495190620422,-0.157409548759460,0.087954364717007,-0.137330949306488,-0.078200243413448,0.198201656341553,-0.064633294939995) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.155060112476349,0.036124434322119,0.236646100878716,-0.133449554443359,0.261135280132294,0.019295779988170,0.137464001774788,0.154341220855713,-0.048735868185759,-0.027977492660284,-0.283417642116547,-0.039215069264174,-0.135331407189369,-0.065181545913219,0.084485754370689,-0.141706973314285) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.013350524008274,0.104500167071819,0.027556804940104,0.154266342520714,0.407145619392395,-0.005827239248902,-0.007293477654457,0.097649209201336,-0.206379443407059,-0.003594772191718,0.090707391500473,-0.103012733161449,-0.109224520623684,-0.065668530762196,-0.143841817975044,-0.272545486688614) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.186801329255104,0.024465186521411,-0.052118718624115,-0.012872125953436,-0.055351231247187,0.015824163332582,-0.109932914376259,-0.022399552166462,-0.038102313876152,0.109003588557243,0.073162950575352,-0.020418494939804,0.091300681233406,0.001546027488075,0.009424884803593,-0.000413882342400) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.173246547579765,-0.172958686947823,-0.206651598215103,-0.036178037524223,0.130286037921906,-0.079680852591991,-0.106271184980869,-0.466725617647171,0.194597139954567,0.064516879618168,-0.124277859926224,-0.145210936665535,0.272457122802734,-0.086016356945038,0.213995143771172,-0.342159628868103) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.085674583911896,0.134006217122078,-0.033901840448380,0.216300100088120,-0.159501492977142,-0.116154767572880,0.172751426696777,-0.156220808625221,0.066223919391632,0.017485322430730,-0.003754359204322,0.081833757460117,-0.068817690014839,-0.012556664645672,0.015485892072320,-0.571608006954193) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.052207857370377,0.034315139055252,-0.159877851605415,-0.082635588943958,-0.205813452601433,-0.018270872533321,0.226808965206146,-0.000835911603644,0.054084137082100,-0.018934790045023,-0.026924500241876,0.249988138675690,-0.122743234038353,-0.033482600003481,0.002885438036174,-0.161763012409210) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.159251883625984,-0.007627622224391,-0.152548477053642,-0.070719398558140,-0.004223183728755,-0.024538692086935,0.018268026411533,0.192040920257568,0.036412142217159,0.000327562447637,-0.210354760289192,0.331181854009628,-0.092065140604973,0.065101340413094,0.005915838293731,0.111067272722721) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.084859527647495,-0.028044518083334,-0.007146446965635,-0.099480569362640,0.124513179063797,-0.016014551743865,0.048189230263233,0.243442028760910,0.044852089136839,-0.121114186942577,-0.191565901041031,-0.083820961415768,-0.135569736361504,0.333418667316437,-0.135254263877869,0.113025993108749) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.190123483538628,-0.086902052164078,-0.173674389719963,-0.088519744575024,0.078612290322781,0.127139627933502,0.022845715284348,0.008889370597899,-0.210979014635086,-0.056600309908390,-0.091644451022148,-0.207702174782753,0.012141311541200,-0.011249375529587,-0.290503948926926,-0.042419895529747) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.173085659742355,-0.031203651800752,0.034512378275394,-0.189039200544357,0.005309247411788,-0.030686344951391,0.187914431095123,0.011938034556806,-0.052902031689882,0.009857578203082,0.129487723112106,-0.007852187380195,-0.069220967590809,0.043321520090103,0.131956294178963,0.173905283212662) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.028597081080079,-0.008099506609142,-0.100178666412830,0.005137893836945,-0.044032342731953,-0.017595676705241,0.013311148621142,0.056844703853130,-0.005997430533171,0.018376242369413,-0.017707621678710,0.118851907551289,0.021384194493294,0.005659244023263,-0.177619680762291,0.257588148117065) * MODEL12_texOff(vec2(1,0));
res += mat4(0.087608076632023,-0.008372233249247,-0.137154236435890,0.013259178958833,-0.057205501943827,-0.003270303597674,0.038666348904371,-0.033896360546350,0.120376586914063,0.048259884119034,-0.121155686676502,0.101541988551617,0.211122483015060,0.035359278321266,-0.049233123660088,-0.002733753994107) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.069103226065636,0.517719209194183,0.008720335550606,0.054154597222805) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 3_5

vec4 hook()
{
vec4 res = vec4(-0.224097639322281,0.000006165158993,-0.011993214488029,-0.108213856816292);
res += mat4(-0.135374203324318,0.022032925859094,-0.078446730971336,0.042554322630167,-0.020799150690436,-0.019370172172785,0.043442387133837,0.005119633860886,0.198537021875381,0.006068948190659,0.167597457766533,-0.056039001792669,0.064816229045391,0.026920884847641,0.002813999541104,0.015497504733503) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.010625293478370,-0.001219500787556,0.135721653699875,0.099064558744431,-0.119731090962887,0.035632964223623,-0.118199884891510,0.061924144625664,-0.214098691940308,-0.007760242093354,-0.078559361398220,0.031016528606415,0.099479593336582,0.163017168641090,0.058277860283852,0.032599795609713) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.082818455994129,0.026854552328587,0.025052540004253,-0.026514880359173,-0.051580470055342,-0.085526250302792,0.024479692801833,-0.012305833399296,0.115253418684006,-0.014180588535964,0.138057380914688,-0.109649077057838,0.090048030018806,0.125018209218979,0.031784404069185,-0.003522478742525) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.154076695442200,-0.142769202589989,0.066412016749382,0.078559920191765,-0.086150221526623,-0.043704684823751,0.028864568099380,0.074556678533554,0.278850525617599,-0.135903194546700,0.178318068385124,-0.037238657474518,0.079294234514236,0.015023780055344,-0.062951095402241,-0.009955361485481) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.021646032109857,-0.260023504495621,-0.051461055874825,-0.031707901507616,-0.033965975046158,0.004285186994821,-0.084930717945099,0.157270699739456,-0.438253402709961,0.204360708594322,-0.149741992354393,-0.086727552115917,-0.123445749282837,0.062980055809021,-0.006176447961479,-0.034383837133646) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.171916916966438,0.028640002012253,-0.024158921092749,-0.017647182568908,-0.216700568795204,-0.006841610651463,0.258359462022781,-0.198431283235550,0.149285867810249,-0.008237056434155,0.013606120832264,-0.272065669298172,0.025898734107614,-0.035410203039646,0.001912861480378,-0.083968922495842) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.131893962621689,-0.029594752937555,0.013470887206495,-0.002411396708339,-0.089146338403225,0.020752515643835,-0.001080113928765,-0.026025753468275,0.057529650628567,0.185425728559494,-0.075779117643833,-0.056249145418406,0.011845525354147,0.083242446184158,-0.007844245992601,0.006678320933133) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.116480104625225,-0.155438289046288,-0.223922878503799,0.106824994087219,0.013033663854003,-0.104810193181038,0.045056626200676,0.030852789059281,0.109235748648643,0.015622873790562,-0.014751942828298,-0.089548565447330,-0.001575860427693,-0.085093006491661,0.045879386365414,-0.022097533568740) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.158249929547310,0.117324031889439,0.057111009955406,0.023628067225218,-0.045971497893333,0.009661558084190,-0.010429156944156,-0.153727263212204,0.079729095101357,-0.018877891823649,0.036144182085991,0.105978310108185,0.006423535291106,-0.090887822210789,0.052033964544535,-0.048045091331005) * MODEL7_texOff(vec2(1,1));
res += mat4(0.101048067212105,-0.006468873005360,0.093112051486969,-0.024638438597322,0.214689999818802,0.017164923250675,0.116047374904156,-0.042179983109236,0.048280090093613,0.121845647692680,0.060919210314751,0.030716754496098,0.018773833289742,0.015775540843606,-0.013796390965581,0.019786706194282) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.144903719425201,0.005754905287176,0.096029117703438,0.105051636695862,0.048236280679703,-0.055941600352526,-0.183563202619553,-0.088546618819237,-0.007490104530007,-0.001103279180825,0.088475853204727,0.037696078419685,0.095438905060291,0.007947236299515,-0.169896468520164,0.080034993588924) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.233949139714241,0.206735789775848,-0.175596833229065,0.222826272249222,0.083560794591904,-0.056049220263958,-0.012680080719292,0.088694982230663,0.048941720277071,-0.064810842275620,-0.213770359754562,0.004395850468427,-0.044438838958740,-0.009722287766635,-0.062331888824701,-0.051900740712881) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.079377703368664,0.061237514019012,-0.059383455663919,-0.101223953068256,0.296463608741760,0.048849828541279,0.077167004346848,0.114847421646118,0.065713256597519,-0.109131075441837,0.016187734901905,-0.119406931102276,0.094134360551834,-0.060118749737740,0.132748991250992,-0.056244526058435) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.015710666775703,-0.112915039062500,-0.022454615682364,-0.067389562726021,0.372941911220551,-0.285409003496170,-0.072178900241852,0.255957722663879,-0.182008817791939,-0.008429277688265,0.004264614079148,-0.064012236893177,0.035639084875584,0.092500396072865,-0.022037409245968,0.085889682173729) * MODEL8_texOff(vec2(0,0));
res += mat4(0.025761865079403,-0.248590156435966,0.055697280913591,-0.104934863746166,0.133681222796440,0.136493384838104,-0.054372128099203,0.081129543483257,-0.004917202517390,-0.147616863250732,-0.243983462452888,0.100551858544350,-0.129285633563995,0.086413420736790,0.045136362314224,-0.121141709387302) * MODEL8_texOff(vec2(0,1));
res += mat4(0.055738665163517,-0.116607107222080,0.092970214784145,-0.055290598422289,0.124522425234318,0.042786356061697,0.044905938208103,-0.073109321296215,0.141214996576309,-0.127867415547371,0.055669352412224,-0.127901017665863,0.215155392885208,-0.083370074629784,0.097923904657364,-0.016412923112512) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.002823296235874,-0.385714143514633,-0.089507810771465,-0.030149279162288,0.099820695817471,0.110415935516357,-0.066054552793503,-0.021449584513903,-0.238342925906181,-0.142136573791504,-0.154109358787537,0.003758096368983,-0.166646331548691,-0.104814551770687,-0.103438630700111,-0.102978467941284) * MODEL8_texOff(vec2(1,0));
res += mat4(0.087417393922806,-0.406240195035934,0.082938022911549,0.023543581366539,0.194384187459946,-0.051669631153345,0.093394421041012,0.027011102065444,0.095595531165600,0.212752744555473,0.002866243710741,0.171423226594925,0.051118943840265,0.002820383058861,-0.256830185651779,0.134561538696289) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.077758833765984,0.054266326129436,-0.028111727908254,0.066621497273445,-0.106299012899399,0.004044363275170,-0.050545040518045,0.053310025483370,-0.089537873864174,0.076446227729321,-0.066744416952133,0.046423729509115,0.065181344747543,0.097347088158131,0.125773966312408,-0.054599691182375) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.002554041100666,0.062283910810947,-0.028252525255084,-0.069054730236530,0.225730270147324,-0.057771299034357,0.151371598243713,0.045353423804045,-0.040621306747198,0.049964383244514,0.141620844602585,0.030304046347737,0.153135761618614,0.047893933951855,-0.127194538712502,0.230013132095337) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.112235859036446,-0.109830625355244,-0.100686326622963,0.082810416817665,0.057871628552675,-0.055617094039917,0.254922896623611,-0.193983152508736,-0.148989319801331,0.064779363572598,0.149562031030655,0.074174739420414,-0.009009049274027,0.010464034043252,-0.001145344809629,0.073581166565418) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.119991630315781,-0.083364464342594,0.070665501058102,-0.025197254493833,-0.097778879106045,0.009267622604966,0.005424684379250,0.193547278642654,-0.023455208167434,0.035641156136990,-0.062588930130005,-0.011882621794939,-0.052960246801376,-0.100010313093662,0.100811466574669,-0.196920260787010) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.040294416248798,-0.014888959005475,-0.120048999786377,0.016502603888512,0.251230150461197,0.063825055956841,0.177322760224342,0.082714900374413,-0.078552484512329,-0.008646757341921,0.088651210069656,-0.048532094806433,0.239238902926445,-0.117272995412350,-0.078303940594196,0.111482650041580) * MODEL9_texOff(vec2(0,0));
res += mat4(0.158642441034317,0.178956523537636,-0.278851032257080,0.255539119243622,0.055134650319815,0.055235069245100,0.184615060687065,-0.162221267819405,-0.113460198044777,0.189714282751083,0.192126587033272,0.272912710905075,-0.074696473777294,0.032878745347261,0.000051464885473,-0.066504292190075) * MODEL9_texOff(vec2(0,1));
res += mat4(0.155329987406731,-0.089699387550354,0.087856426835060,0.024690527468920,-0.041710834950209,0.133982107043266,0.015416017733514,0.059647049754858,0.008914186619222,-0.057085290551186,0.025560472160578,0.085068143904209,-0.008103453554213,-0.014849247410893,0.097016952931881,-0.080555208027363) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.065451502799988,-0.100506648421288,0.016904236748815,-0.078952945768833,0.241525873541832,0.206515088677406,0.178783535957336,0.187852486968040,0.027975372970104,-0.142415314912796,0.048415929079056,0.157867133617401,0.056696966290474,0.182451248168945,-0.066659979522228,0.110352650284767) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.051755659282207,0.010705879889429,-0.165430843830109,0.094379849731922,-0.016419531777501,-0.026803543791175,0.404785037040710,-0.217588439583778,0.052600979804993,0.077179722487926,0.060383122414351,-0.147434934973717,-0.017047967761755,-0.025451840832829,-0.036183930933475,0.103141196072102) * MODEL9_texOff(vec2(1,1));
res += mat4(0.009283266030252,0.007596220821142,0.051717583090067,-0.025745715945959,0.029109358787537,0.055797215551138,-0.152327015995979,-0.058958247303963,-0.037938322871923,-0.055227819830179,-0.086344398558140,-0.063652381300926,0.019638404250145,0.021036000922322,0.091252140700817,-0.052008341997862) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.132811546325684,-0.066122196614742,-0.115356281399727,-0.138270050287247,0.169842407107353,0.045733809471130,0.249543517827988,-0.010522453114390,-0.008694326505065,-0.075459413230419,0.151176959276199,-0.058355271816254,-0.069259971380234,0.069202311336994,-0.166634306311607,0.043347917497158) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.045554302632809,-0.060248441994190,-0.005363810807467,-0.092880941927433,0.065127529203892,0.012496325187385,0.157125845551491,-0.031619720160961,-0.201103404164314,-0.014386944472790,0.031925700604916,-0.034427076578140,-0.019574044272304,0.004533872473985,0.082198657095432,0.005523435771465) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.125508293509483,0.004804637748748,0.140125781297684,-0.143251314759254,0.036386020481586,0.100301690399647,0.095635019242764,0.003288832260296,-0.092363163828850,0.143051549792290,0.014359713532031,0.200701281428337,0.042992673814297,-0.087718360126019,0.137657955288887,-0.132683411240578) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.086949877440929,0.196396619081497,-0.298056304454803,0.141661584377289,0.074773110449314,0.027180798351765,0.115183494985104,0.066719040274620,-0.265611797571182,0.159096598625183,0.323639065027237,-0.014647648669779,-0.411414563655853,0.038411017507315,-0.241119846701622,0.526197493076324) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.172845616936684,0.046640232205391,-0.150950640439987,0.137694090604782,0.057947129011154,0.170880720019341,0.132178679108620,0.044060293585062,-0.005160767119378,-0.073882184922695,0.077098742127419,-0.041044991463423,-0.068905226886272,0.137843772768974,0.070468984544277,0.051411885768175) * MODEL10_texOff(vec2(0,1));
res += mat4(0.056076698005199,0.059830740094185,0.016103388741612,-0.003640238195658,-0.048278246074915,0.025863071903586,0.113924369215965,-0.074288137257099,-0.000914182222914,0.048732120543718,-0.159447982907295,0.093936443328857,0.018941685557365,0.038488008081913,0.001598087954335,-0.060447499155998) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.031938236206770,-0.150751367211342,-0.095703735947609,-0.087789475917816,0.003720211097971,-0.302831113338470,-0.130662783980370,-0.053772144019604,0.038298476487398,0.206752553582191,0.212516203522682,-0.007226243149489,0.011570076458156,-0.338182717561722,-0.007080223876983,-0.172037646174431) * MODEL10_texOff(vec2(1,0));
res += mat4(0.014769101515412,-0.023961024358869,0.043140280991793,0.102899521589279,-0.013453993946314,-0.214722692966461,0.102040581405163,0.108300566673279,0.065966330468655,-0.109540037810802,-0.028004612773657,0.056196998804808,0.016511810943484,-0.145681262016296,0.067366458475590,-0.121849872171879) * MODEL10_texOff(vec2(1,1));
res += mat4(0.037625651806593,-0.066968165338039,-0.037272594869137,0.052747916430235,0.045520693063736,0.022358383983374,-0.091189302504063,0.099290356040001,-0.029132882133126,-0.050062797963619,-0.087842136621475,0.086314201354980,0.033688846975565,-0.031797986477613,-0.015616377815604,-0.057810544967651) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.050435625016689,-0.108071453869343,0.022544618695974,-0.005083602853119,0.008627817966044,0.004064113833010,0.140269443392754,-0.020242387428880,0.054116256535053,-0.140618711709976,-0.043486051261425,-0.233155757188797,0.041312541812658,0.090265721082687,0.053910162299871,0.069405384361744) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.009675174020231,-0.026200037449598,0.108955204486847,0.003994058351964,-0.206107139587402,-0.081462487578392,0.109554991126060,0.085903011262417,-0.115957617759705,-0.084229193627834,0.074795275926590,0.002954962197691,0.006026725750417,0.124133713543415,-0.055408999323845,0.086135730147362) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.062934912741184,0.114389643073082,0.053009148687124,0.125519290566444,0.059813085943460,-0.122752867639065,0.037630252540112,-0.051160786300898,-0.038770768791437,-0.030526895076036,-0.026607058942318,-0.006627423223108,-0.154564261436462,0.076953195035458,0.031480960547924,-0.096842288970947) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.444130837917328,0.108466871082783,0.148722589015961,-0.069134168326855,0.249998554587364,0.287747353315353,0.028630958870053,0.111116558313370,-0.012910637073219,0.147596448659897,-0.085771560668945,0.272602945566177,0.433617919683456,-0.195733577013016,0.184396386146545,0.062883466482162) * MODEL11_texOff(vec2(0,0));
res += mat4(0.106806755065918,0.180705815553665,-0.553763449192047,0.058315370231867,0.084258392453194,0.293981313705444,-0.007286377716810,0.060735091567039,-0.099556557834148,0.167852684855461,0.085423849523067,-0.241087973117828,0.071895785629749,-0.146734476089478,-0.157364279031754,0.267463654279709) * MODEL11_texOff(vec2(0,1));
res += mat4(0.036973986774683,0.039191052317619,-0.097497254610062,0.075394436717033,0.030027205124497,-0.186035245656967,0.111908271908760,-0.085299633443356,0.012511032633483,0.086524657905102,-0.014289536513388,0.063982568681240,-0.044857747852802,0.068867735564709,0.016018804162741,-0.066399693489075) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.126968696713448,-0.156314611434937,0.059311300516129,-0.143791228532791,0.112874105572701,0.032361336052418,0.112738221883774,-0.199801906943321,-0.180898562073708,0.001082918024622,-0.041649285703897,0.173645958304405,-0.055619552731514,0.080185577273369,-0.045427002012730,0.040397863835096) * MODEL11_texOff(vec2(1,0));
res += mat4(0.019716287031770,0.003740804037079,0.013546452857554,0.008976005949080,0.062708407640457,-0.215128064155579,-0.149327933788300,0.052970025688410,-0.162855386734009,0.042242057621479,-0.067834362387657,-0.068098910152912,-0.152998939156532,0.160317540168762,-0.003194360993803,0.090472958981991) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.004755253903568,-0.032654408365488,-0.024292781949043,-0.147906765341759,0.181731522083282,-0.102844238281250,0.108268357813358,-0.008934688754380,-0.039095092564821,-0.002215506741777,-0.015607063658535,-0.114546351134777,-0.085553839802742,0.026175949722528,0.006628234405071,-0.029473584145308) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.129370257258415,0.131213054060936,-0.086337141692638,0.049150906503201,0.073409385979176,-0.215988487005234,-0.222552269697189,-0.039303671568632,0.040319241583347,-0.069456167519093,-0.334910750389099,0.105785742402077,-0.012924036011100,-0.097330212593079,-0.046631067991257,-0.141567498445511) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.122056216001511,0.066643856465816,-0.130838811397552,0.046749856323004,0.066561810672283,-0.104129686951637,0.000877664191648,-0.032832089811563,0.012633790262043,0.076151072978973,-0.470770537853241,0.137004330754280,0.039161294698715,-0.198837593197823,0.015645340085030,-0.083779856562614) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.006454780697823,0.139534220099449,0.041919283568859,-0.088356405496597,0.063261888921261,0.087896049022675,0.133092507719994,-0.066461578011513,0.048778846859932,0.092592798173428,-0.033004660159349,0.012507766485214,0.058541037142277,0.027665402740240,-0.078744702041149,-0.006870135199279) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.192713364958763,-0.147359490394592,0.003665769938380,-0.071401707828045,0.074636749923229,0.180414691567421,-0.098710790276527,-0.101312905550003,0.128558784723282,-0.000406903360272,-0.040601093322039,0.010274731554091,-0.100234940648079,0.205025672912598,0.072256587445736,0.028527449816465) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.110047556459904,-0.150935187935829,-0.153819084167480,-0.010750051587820,-0.155211284756660,0.148700177669525,-0.056570116430521,-0.152948752045631,0.058181788772345,-0.094791829586029,-0.286720126867294,0.368921637535095,-0.056751135736704,0.092004418373108,-0.100852757692337,-0.240192070603371) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.108132198452950,0.037205036729574,-0.060358706861734,0.019683156162500,-0.011256264522672,0.124514885246754,0.084074839949608,0.012430300936103,-0.076276570558548,-0.061584211885929,-0.013748754747212,0.000120951452118,-0.010630272328854,0.062321294099092,-0.141964480280876,0.049245476722717) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.003042542841285,0.081081196665764,-0.059308506548405,0.041227631270885,-0.013546301983297,-0.095001339912415,0.045130901038647,0.075891152024269,0.018889252096415,0.065424881875515,0.087103940546513,0.052338987588882,0.137876704335213,-0.126446306705475,0.069490388035774,0.154695853590965) * MODEL12_texOff(vec2(1,0));
res += mat4(0.015176120214164,-0.206542447209358,0.054875154048204,0.027318695560098,0.004851764068007,-0.138965100049973,-0.172582089900970,0.021044129505754,0.160910412669182,-0.076405629515648,-0.252196311950684,0.167400851845741,-0.054611071944237,-0.214217856526375,0.061379086226225,0.033766292035580) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.072757825255394,-0.237619683146477,-0.152898594737053,0.364808738231659) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 3_6

vec4 hook()
{
vec4 res = vec4(-0.075969196856022,0.017438350245357,0.050124108791351,0.103356614708900);
res += mat4(0.069867342710495,-0.010464426130056,-0.007611845154315,0.034212294965982,-0.038020223379135,0.037936370819807,-0.054772924631834,0.041567992419004,0.003815614385530,0.077449277043343,0.137382149696350,0.060887176543474,0.172626003623009,-0.108094066381454,-0.044725209474564,0.073858827352524) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.134294018149376,0.000893935910426,-0.042884960770607,-0.059686250984669,-0.050937429070473,-0.091962918639183,0.084294088184834,0.097475111484528,0.070300996303558,-0.258153110742569,0.016246723011136,0.012365540489554,0.042895354330540,0.232979506254196,-0.127958357334137,0.056287031620741) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.098037742078304,0.107133634388447,0.054953180253506,0.084009565412998,0.089780978858471,0.026114409789443,0.053645219653845,-0.049294631928205,0.222597092390060,-0.118863619863987,-0.201195761561394,-0.036916594952345,0.135414466261864,0.036647148430347,-0.160346537828445,-0.003221591468900) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.109800308942795,-0.022159060463309,0.146602973341942,0.116256862878799,-0.157319843769073,0.075249522924423,0.005799560807645,-0.041752535849810,-0.317984819412231,0.110620245337486,0.327558994293213,-0.014134272001684,0.005705682560802,0.145808264613152,0.037826638668776,0.042904894798994) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.000872652104590,-0.002298038685694,-0.044426254928112,-0.120544925332069,0.162366047501564,0.049828752875328,0.138704389333725,0.143184661865234,0.318154543638229,-0.389390498399734,0.146950408816338,0.021871840581298,0.399149656295776,-0.037022311240435,-0.038584660738707,0.115060195326805) * MODEL7_texOff(vec2(0,0));
res += mat4(0.073802970349789,0.131429895758629,0.161481380462646,0.104585260152817,-0.144230112433434,0.193192824721336,0.191595375537872,-0.031310439109802,-0.058489762246609,0.153096646070480,-0.040788084268570,-0.120423533022404,0.215660184621811,0.116308838129044,-0.096828386187553,0.016554562374949) * MODEL7_texOff(vec2(0,1));
res += mat4(0.109839938580990,-0.156313329935074,-0.017986038699746,0.029491469264030,0.003513064468279,-0.024179939180613,-0.051549926400185,0.001074247993529,-0.021936826407909,0.078520432114601,0.117932751774788,-0.043737892061472,0.039849516004324,-0.033522192388773,-0.140248775482178,0.050120275467634) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.013335804454982,-0.170425042510033,0.048769257962704,0.265244603157043,-0.089183159172535,0.139467179775238,0.067422360181808,-0.059185534715652,-0.092494904994965,-0.015145724639297,-0.143259286880493,-0.027420541271567,-0.019099339842796,0.032967351377010,-0.032271374017000,0.051832072436810) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.251772522926331,0.120925448834896,-0.041886433959007,-0.143352389335632,-0.188709303736687,0.040151543915272,0.169321626424789,0.071408577263355,0.081054940819740,-0.113580092787743,0.050815127789974,0.134379357099533,0.169498443603516,0.096733994781971,0.013463540002704,0.014167648740113) * MODEL7_texOff(vec2(1,1));
res += mat4(0.082229502499104,-0.017403576523066,0.071877777576447,0.046886019408703,0.088184542953968,-0.120755091309547,-0.006842600181699,-0.063406705856323,0.037353765219450,-0.242858067154884,0.126937031745911,-0.170320481061935,0.110749915242195,-0.100852429866791,-0.063621558248997,-0.000359360390576) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.134028449654579,-0.156730636954308,0.137261703610420,-0.096673846244812,-0.110708393156528,0.082508251070976,0.095382586121559,-0.167689055204391,-0.004220273811370,-0.123588509857655,-0.034211128950119,-0.119921535253525,-0.024194961413741,0.051229625940323,-0.085850663483143,0.050661996006966) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.000313874363201,0.073185920715332,0.116324797272682,0.097532376646996,0.162497624754906,-0.066491380333900,0.041312005370855,0.030447540804744,-0.043141253292561,0.058357369154692,-0.139855891466141,-0.002377405529842,-0.081343404948711,-0.003604450263083,-0.163325160741806,0.057355035096407) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.076735638082027,0.185506939888000,0.082584358751774,0.087193742394447,0.157557830214500,-0.260104000568390,0.254925817251205,-0.024567002430558,-0.126497149467468,-0.009687645360827,0.068109139800072,-0.029412066563964,-0.079835705459118,0.032102447003126,0.121218100190163,0.121194146573544) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.107406891882420,0.089333839714527,0.170973077416420,-0.007487335242331,0.122217535972595,0.095325663685799,0.111552864313126,0.034690964967012,-0.198883980512619,0.316703617572784,-0.181935235857964,0.086716398596764,0.045946054160595,-0.096305221319199,-0.215294986963272,-0.097718462347984) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.180853873491287,0.017453730106354,-0.085425406694412,0.039844393730164,-0.103060789406300,0.073481962084770,-0.007989028468728,0.000013169252270,0.012179211713374,-0.119098797440529,0.086654573678970,0.103271789848804,-0.008800964802504,0.058683380484581,-0.250422954559326,0.171501502394676) * MODEL8_texOff(vec2(0,1));
res += mat4(0.118329100310802,0.100764453411102,0.280960738658905,-0.004992146976292,-0.037890035659075,0.118834376335144,-0.001313942251727,0.094635374844074,-0.044037789106369,0.036897737532854,-0.010857069864869,-0.018336964771152,-0.098591394722462,0.044853270053864,-0.129445150494576,0.044688727706671) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.080499701201916,0.055561188608408,0.077710017561913,-0.171737834811211,0.011588245630264,0.066146902740002,-0.198617130517960,0.071557767689228,0.146810978651047,0.172797381877899,-0.012597105465829,0.068239510059357,0.132042989134789,-0.098379231989384,-0.309145361185074,-0.002498087938875) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.060151465237141,-0.013601040467620,0.069618619978428,0.055214349180460,-0.023249948397279,0.061250541359186,-0.005500873550773,-0.050919406116009,0.256728023290634,-0.253430873155594,-0.017026489600539,-0.070066496729851,0.063461512327194,-0.124033726751804,-0.322363972663879,0.111651070415974) * MODEL8_texOff(vec2(1,1));
res += mat4(0.094911225140095,-0.130527272820473,0.034568659961224,-0.024562401697040,-0.047099433839321,0.093971617519855,-0.032726924866438,0.007417247164994,0.104592420160770,-0.039864797145128,-0.081825464963913,0.025355640798807,0.159000769257545,-0.377774029970169,-0.007642877753824,-0.036571420729160) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.112332604825497,-0.077342949807644,-0.047731634229422,0.098674848675728,0.060382619500160,-0.028965953737497,-0.114789858460426,0.203058555722237,0.048179492354393,0.005432156380266,0.021594978868961,0.075903266668320,0.069924607872963,-0.087882801890373,-0.066486589610577,-0.149975672364235) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.065278381109238,-0.054403871297836,0.028517276048660,-0.002110179979354,-0.010313269682229,0.229427158832550,0.041704263538122,-0.012812450528145,-0.036302752792835,-0.066591762006283,0.178546532988548,0.100112698972225,0.075634770095348,0.058622609823942,-0.047079116106033,-0.199659049510956) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.116496369242668,-0.093179479241371,0.074613362550735,-0.061739228665829,0.189208686351776,0.154462829232216,-0.063228428363800,0.027547009289265,0.087118767201900,0.018312469124794,0.015284310095012,0.088618494570255,0.020472051575780,-0.364973813295364,-0.063397847115993,-0.146858975291252) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.047925200313330,0.189244583249092,-0.009727678261697,-0.000435831025243,0.007038256153464,0.055504597723484,-0.001573066925630,0.097863882780075,-0.071197174489498,0.061607275158167,0.167554840445518,0.192445561289787,-0.023869963362813,-0.106925249099731,0.179102063179016,-0.206649392843246) * MODEL9_texOff(vec2(0,0));
res += mat4(0.112127736210823,-0.232413962483406,-0.026850974187255,0.049997441470623,-0.112581543624401,0.267484813928604,0.093011133372784,-0.156004533171654,-0.142635747790337,-0.229491457343102,0.123494796454906,0.107094459235668,-0.155268698930740,-0.126698255538940,-0.124563172459602,-0.169165730476379) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.068399757146835,-0.359021246433258,-0.056224666535854,-0.078854508697987,0.090827643871307,0.191361889243126,-0.233314216136932,0.000902883417439,0.048507422208786,0.027506286278367,0.061431400477886,0.051171399652958,0.049735490232706,-0.170307874679565,0.038952890783548,-0.048397369682789) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.045059464871883,0.099112592637539,0.031338907778263,-0.029212431982160,0.054032232612371,0.262875795364380,0.095596447587013,0.023796491324902,-0.019490918144584,0.032738562673330,0.110183507204056,-0.115322045981884,-0.155608162283897,-0.030277883633971,-0.009119904600084,-0.072936736047268) * MODEL9_texOff(vec2(1,0));
res += mat4(0.065653994679451,0.006459090393037,-0.035537246614695,-0.065660841763020,-0.092599704861641,0.250361770391464,-0.034171264618635,-0.037021152675152,-0.079291142523289,0.031558766961098,0.049066342413425,-0.107768341898918,-0.092847354710102,-0.046803500503302,0.003157883649692,0.022080283612013) * MODEL9_texOff(vec2(1,1));
res += mat4(0.042842544615269,-0.051080796867609,-0.023259488865733,-0.069931305944920,0.090748399496078,0.089612089097500,-0.016677562147379,0.149531498551369,0.069057442247868,0.085231691598892,0.134649798274040,0.074763074517250,0.044035859405994,-0.062390759587288,-0.140241831541061,0.058512523770332) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.115637674927711,-0.072951011359692,0.081341899931431,0.024597927927971,-0.041912581771612,0.111785560846329,-0.192703977227211,-0.058976024389267,0.031703837215900,0.082357846200466,0.116178996860981,-0.055326137691736,-0.074281655251980,-0.042752489447594,-0.010971667245030,-0.094302207231522) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.009848747402430,0.055852856487036,-0.043082706630230,0.087345898151398,0.073710560798645,0.037444524466991,-0.046429391950369,0.115393713116646,0.029763590544462,0.075857385993004,0.029665520414710,-0.049920592457056,0.114603728055954,-0.043082006275654,0.026050923392177,-0.051615543663502) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.075166001915932,0.031579446047544,0.194354742765427,-0.031027445569634,0.043429791927338,-0.198290571570396,0.027803927659988,-0.007633475121111,0.143431350588799,0.075140342116356,-0.085729040205479,0.100404918193817,0.058918844908476,0.093364298343658,0.080477245151997,0.022924302145839) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.141746953129768,0.016356484964490,0.074181132018566,-0.076680272817612,0.085948050022125,0.054831285029650,-0.248791500926018,-0.140419259667397,0.126850217580795,-0.004051525611430,0.120280548930168,0.194837644696236,0.414750784635544,-0.344138443470001,-0.240736395120621,0.082918897271156) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.154385000467300,0.020358674228191,0.114696830511093,0.173843204975128,-0.011223405599594,-0.041101809591055,-0.105368912220001,-0.005998485721648,-0.042291551828384,-0.094129957258701,-0.095057539641857,-0.015573915094137,-0.302448481321335,0.056800499558449,0.061958398669958,-0.084767274558544) * MODEL10_texOff(vec2(0,1));
res += mat4(0.085666187107563,0.123929664492607,0.099457345902920,0.008372370153666,-0.043578621000051,-0.064749158918858,-0.000438313116319,-0.024221420288086,0.167484685778618,0.216694861650467,-0.035734809935093,0.071336917579174,0.065972946584225,0.002621535211802,-0.135980516672134,0.021819926798344) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.189448013901711,0.112896040081978,0.133097425103188,-0.125448837876320,-0.212306529283524,0.077452160418034,-0.045091293752193,-0.039621729403734,0.256341964006424,-0.136234834790230,-0.053631342947483,-0.162158951163292,-0.253165096044540,0.047028221189976,-0.019154777750373,-0.017305696383119) * MODEL10_texOff(vec2(1,0));
res += mat4(0.069083280861378,-0.041197277605534,0.013690825551748,0.064574442803860,-0.268407255411148,-0.036117956042290,-0.020861096680164,-0.056532561779022,-0.011921839788556,-0.042276758700609,0.164465337991714,0.070209138095379,-0.091608420014381,0.044870547950268,-0.007162907160819,0.007603371050209) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.059639494866133,0.134385809302330,-0.021872324869037,-0.030397007241845,0.281594425439835,-0.003276654751971,-0.147336855530739,0.005544278305024,0.006738475989550,0.149143829941750,-0.086239323019981,0.000859460502397,0.026199925690889,-0.038458254188299,-0.092217043042183,-0.014386164024472) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.016542633995414,-0.002996774157509,-0.039277512580156,0.093095585703850,0.009824373759329,-0.030410006642342,-0.142319217324257,0.083778053522110,-0.160822346806526,-0.076952613890171,-0.200880423188210,0.153531014919281,0.231551289558411,0.039055135101080,0.032190524041653,-0.297775954008102) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.071809649467468,0.070634700357914,0.093438722193241,-0.120304211974144,-0.021524330601096,0.107545085251331,0.182827353477478,0.043487463146448,-0.066921867430210,0.116917349398136,0.010775574482977,-0.136088430881500,0.098608992993832,-0.070321783423424,0.039643209427595,0.134128615260124) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.183058723807335,-0.238460004329681,0.087378166615963,-0.160084336996078,0.021038498729467,-0.262176960706711,-0.068310014903545,-0.037329033017159,-0.019665414467454,-0.015440954826772,0.044726636260748,0.019263518974185,0.167358726263046,-0.129489362239838,0.078524462878704,-0.111988678574562) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.161977663636208,0.066702127456665,-0.080388858914375,-0.324246734380722,0.131071940064430,-0.250982820987701,-0.110137090086937,0.076724603772163,0.252866059541702,-0.467725396156311,-0.173903569579124,0.026511816307902,-0.298184186220169,0.130525007843971,0.004545165225863,-0.234030768275261) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.016874233260751,-0.089149862527847,-0.081219181418419,0.119037166237831,-0.200303986668587,0.083691850304604,0.183677554130554,-0.093048170208931,-0.505218148231506,0.344133645296097,0.059512287378311,-0.186667904257774,-0.060281705111265,-0.197569608688354,-0.002064811764285,0.186224505305290) * MODEL11_texOff(vec2(0,1));
res += mat4(0.123262010514736,0.034502357244492,-0.047229845076799,0.054676722735167,-0.095616817474365,-0.066210523247719,0.071470551192760,-0.130430877208710,-0.098024502396584,0.031851015985012,0.008562062866986,0.008366303518414,0.043610885739326,0.054391283541918,0.035134676843882,-0.044291701167822) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.238540858030319,0.017383547499776,0.100284419953823,0.042634122073650,-0.011975409463048,0.141315951943398,-0.169158637523651,-0.123200610280037,0.229092851281166,-0.200263321399689,-0.092302456498146,0.072536364197731,-0.150807395577431,0.036990303546190,0.203625887632370,0.069988198578358) * MODEL11_texOff(vec2(1,0));
res += mat4(0.000416365190176,0.024896817281842,-0.008980874903500,-0.022819831967354,-0.018643481656909,0.003296580864117,0.131191492080688,0.084582082927227,-0.262258052825928,0.189455941319466,0.068926312029362,-0.117860317230225,-0.109606914222240,-0.002050138777122,-0.019942978397012,-0.051740095019341) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.041685614734888,-0.007837557233870,-0.062215153127909,-0.037840396165848,-0.111549943685532,-0.033505924046040,0.099669352173805,0.103492610156536,0.051608946174383,-0.148229867219925,0.120043873786926,-0.196111038327217,-0.029061032459140,-0.036305636167526,-0.125782355666161,-0.129963651299477) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.211807787418365,0.040528636425734,-0.034935448318720,-0.065076380968094,-0.078440025448799,0.095043770968914,0.161839067935944,0.139660656452179,0.066213652491570,-0.079771004617214,-0.020564815029502,-0.125909134745598,-0.204836428165436,0.023319361731410,-0.201925948262215,0.175244286656380) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.009905706159770,-0.039246901869774,-0.069638863205910,0.054448626935482,0.154621750116348,0.062586963176727,0.100423149764538,-0.040196079760790,0.066192068159580,-0.030214767903090,0.057761415839195,-0.037996657192707,-0.027742447331548,0.020369796082377,-0.125778317451477,-0.131572231650352) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.041933078318834,-0.158209323883057,-0.140430867671967,-0.037121258676052,0.085617877542973,0.084541469812393,-0.036192242056131,0.047761444002390,-0.035522215068340,-0.134776696562767,-0.026171358302236,-0.140554875135422,-0.091453529894352,-0.349979579448700,0.061044462025166,-0.025371477007866) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.003807035041973,0.187150791287422,-0.329774588346481,-0.110074631869793,-0.034701723605394,-0.103763140738010,0.275629431009293,0.147045493125916,-0.028264427557588,-0.267988622188568,0.102560594677925,-0.272829264402390,0.053198758512735,0.144133448600769,0.194759890437126,0.105466075241566) * MODEL12_texOff(vec2(0,0));
res += mat4(0.149895995855331,-0.128727614879608,-0.197404310107231,0.024928728118539,0.027148369699717,0.113653682172298,0.202831149101257,-0.045365832746029,-0.219520956277847,-0.074433349072933,-0.046704083681107,-0.210610702633858,-0.060175422579050,0.089888058602810,0.006299953442067,-0.110002771019936) * MODEL12_texOff(vec2(0,1));
res += mat4(0.181772798299789,-0.100703641772270,-0.234945818781853,0.043132230639458,0.045027520507574,-0.103912137448788,0.107376135885715,-0.032182186841965,0.065893858671188,-0.239637836813927,-0.030757194384933,0.072406619787216,0.074035726487637,-0.017803439870477,-0.075064770877361,-0.015059922821820) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.108398579061031,-0.058969032019377,-0.115276612341404,0.032361242920160,-0.022746762260795,-0.005120353773236,0.131337165832520,-0.037171147763729,-0.068676270544529,-0.165099337697029,-0.044444784522057,-0.062768004834652,0.017051273956895,-0.285811543464661,-0.134707242250443,-0.026287456974387) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.093044832348824,0.007685024756938,-0.080525420606136,-0.087090000510216,-0.138273611664772,0.025159528478980,0.099583312869072,0.051295995712280,-0.331177532672882,-0.035483099520206,-0.117809720337391,0.047790408134460,-0.124693609774113,0.109565682709217,-0.238115996122360,0.012936249375343) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.271789997816086,-0.071647860109806,0.004387705121189,0.097743518650532) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.119823157787323,-0.184240087866783,-0.019510937854648,-0.118207775056362);
res += mat4(0.051887113600969,-0.071889482438564,0.007986334152520,-0.006307875737548,0.025595845654607,0.125228598713875,0.003214553231373,0.087553218007088,-0.044761374592781,-0.071737147867680,-0.008679184131324,-0.021416358649731,0.016248045489192,0.015920583158731,-0.032626830041409,-0.004314153920859) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.100182935595512,0.034551192075014,-0.003473694436252,0.029554123058915,0.076026983559132,0.047400370240211,0.018318556249142,0.055124666541815,-0.005680979695171,0.173993945121765,-0.058121435344219,0.114354453980923,-0.049958761781454,-0.079080216586590,-0.112189017236233,-0.030351674184203) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.047642618417740,-0.027603399008512,-0.026230391114950,-0.019451260566711,-0.009963847696781,0.002088583307341,-0.002451826585457,-0.010032107122242,0.042336750775576,-0.014984135515988,-0.011870104819536,0.072841696441174,-0.028867019340396,-0.063845932483673,0.012232113629580,0.003319730982184) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.009901835583150,0.044667344540358,0.033461410552263,0.027173779904842,-0.240024253726006,0.080817572772503,-0.122654154896736,-0.240265548229218,0.005253138951957,0.109874449670315,0.175183191895485,-0.072801910340786,0.055850110948086,-0.054229307919741,-0.056705195456743,-0.017534129321575) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.159441083669662,-0.243478402495384,0.049294345080853,-0.067791566252708,-0.124238550662994,0.112938843667507,-0.114508837461472,0.046471297740936,-0.352969795465469,-0.027292774990201,-0.229365870356560,-0.207945927977562,-0.354491561651230,-0.026901885867119,0.096969358623028,-0.068745359778404) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.135464921593666,-0.214421868324280,0.026111852377653,-0.055156491696835,-0.007149062585086,0.004951434675604,0.046212296932936,-0.007813930511475,0.082850798964500,-0.069475412368774,0.325067490339279,-0.142184644937515,0.062480229884386,-0.060012761503458,-0.035803571343422,-0.084516011178493) * MODEL1_texOff(vec2(0,1));
res += mat4(0.041059453040361,0.050544749945402,0.059497110545635,0.021508475765586,0.011580043472350,0.111609458923340,0.046699959784746,0.021233066916466,0.035769615322351,0.010586532764137,-0.055012106895447,-0.026051431894302,0.129993975162506,-0.035859152674675,0.021852772682905,0.041629359126091) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.066235594451427,-0.030468182638288,-0.040222387760878,0.019348885864019,-0.036968041211367,-0.108936347067356,0.064753629267216,-0.058527119457722,-0.094857364892960,-0.000112750436529,-0.107189483940601,-0.019808202981949,-0.080726958811283,-0.086548529565334,-0.139912426471710,0.137019395828247) * MODEL1_texOff(vec2(1,0));
res += mat4(0.009984871372581,-0.041775524616241,-0.058013536036015,-0.078836791217327,-0.045791868120432,0.098317600786686,0.024741215631366,-0.014024226926267,-0.052439235150814,0.019287534058094,-0.090098887681961,0.013849711976945,-0.113146431744099,0.083663217723370,0.037459589540958,0.117939174175262) * MODEL1_texOff(vec2(1,1));
res += mat4(0.130153834819794,0.053684640675783,0.069621413946152,0.074879296123981,-0.026867683976889,-0.004161097109318,-0.016078874468803,0.057474613189697,0.041707072407007,-0.067720212042332,0.104508705437183,-0.023019697517157,-0.004739629104733,-0.071631334722042,0.044102106243372,-0.013927248306572) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.093694932758808,-0.117524139583111,0.066023506224155,0.021342419087887,0.043825112283230,0.058954369276762,0.057922188192606,0.044256296008825,0.086875431239605,0.001261078752577,0.271825134754181,0.082305222749710,0.137792080640793,0.076280511915684,0.296704202890396,0.063758440315723) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.061522796750069,0.024514969438314,0.035849131643772,-0.009353740140796,-0.020377259701490,-0.068444684147835,0.034659750759602,0.013560918159783,-0.074404165148735,-0.120538860559464,0.048443514853716,0.011921273544431,-0.016360186040401,-0.007015051320195,0.009637358598411,0.020141713321209) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.047185935080051,-0.049106989055872,0.002441318472847,-0.044790927320719,-0.048391882330179,0.061635129153728,0.064666286110878,0.085579566657543,0.052101887762547,-0.075768224895000,0.024404447525740,-0.064456574618816,0.113409653306007,0.155028805136681,0.250278025865555,0.024122236296535) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.062843121588230,0.075202420353889,-0.223357349634171,0.113810516893864,-0.178373113274574,-0.199177622795105,0.002903491025791,-0.145592346787453,0.096434377133846,0.078531019389629,-0.448819220066071,-0.100997067987919,0.014902009628713,0.044930513948202,-0.393035799264908,0.284475833177567) * MODEL2_texOff(vec2(0,0));
res += mat4(0.137961715459824,0.022758675739169,-0.080091089010239,0.197813540697098,-0.162975028157234,0.023869944736362,-0.034090369939804,-0.056606221944094,0.082694359123707,-0.118460059165955,-0.066323988139629,-0.079690605401993,0.022294333204627,-0.118698842823505,0.063613273203373,0.169247448444366) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.005942002870142,-0.056516967713833,0.011269069276750,-0.013775605708361,-0.053376700729132,0.197245553135872,-0.022131655365229,-0.012122422456741,-0.004031829070300,-0.019359244033694,0.042090740054846,-0.027509760111570,-0.035810597240925,0.018854580819607,0.088203988969326,-0.020861329510808) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.185877948999405,0.022180613130331,0.133737429976463,-0.001783118932508,-0.175883576273918,-0.101587891578674,-0.043817527592182,0.047384478151798,-0.026460396125913,0.044428683817387,0.353495448827744,-0.087154611945152,0.079101227223873,0.084144815802574,0.272289276123047,-0.045161269605160) * MODEL2_texOff(vec2(1,0));
res += mat4(0.101542957127094,0.031066559255123,0.046831157058477,-0.065138354897499,-0.202835008502007,0.071822077035904,0.067938610911369,0.010760762728751,0.212585031986237,-0.039348769932985,0.126376181840897,-0.109965927898884,0.008220101706684,0.006512654945254,-0.027023190632463,-0.042177312076092) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.007303042337298,0.097415290772915,-0.014110788702965,-0.043182406574488,-0.029210282489657,0.152661740779877,-0.034730631858110,0.047969628125429,0.005367494188249,-0.055508773773909,0.012392790056765,-0.052705362439156,-0.000655655167066,-0.012177700176835,-0.084098696708679,-0.021737035363913) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.100913479924202,-0.139819204807281,-0.041938874870539,-0.074146918952465,-0.037847135215998,0.080962836742401,-0.156963229179382,-0.029816670343280,0.010926540009677,-0.209073141217232,0.077669240534306,-0.027489107102156,-0.036847814917564,-0.048122823238373,-0.099697507917881,-0.042992144823074) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.041301388293505,-0.092073604464531,0.043648898601532,0.021487127989531,0.005005504470319,0.129056870937347,0.037249553948641,0.063338987529278,0.018248079344630,0.027466930449009,0.050131790339947,0.038656387478113,0.053953576833010,-0.036840345710516,0.004615712910891,-0.077560745179653) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.019123390316963,-0.089502304792404,-0.110303692519665,0.022780064493418,-0.134588450193405,0.018020264804363,-0.235669776797295,-0.052646424621344,0.044780161231756,0.193509742617607,0.108126617968082,0.029574112966657,0.058103892952204,0.084320060908794,0.072807930409908,0.048023719340563) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.147046491503716,0.015490478836000,0.070252165198326,0.154641658067703,-0.107939995825291,0.234299510717392,0.268590062856674,0.082430623471737,0.179215207695961,-0.103524319827557,0.071767374873161,-0.058732684701681,0.249405726790428,-0.195866703987122,0.186334088444710,-0.052223674952984) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.072960264980793,0.076135210692883,-0.007569296285510,0.135327294468880,0.122879549860954,0.149661421775818,-0.006932548712939,-0.065629877150059,-0.065209589898586,-0.057949602603912,-0.144681990146637,-0.051640227437019,0.028257338330150,0.008310938253999,-0.047575443983078,-0.047611359506845) * MODEL3_texOff(vec2(0,1));
res += mat4(0.079960331320763,0.138108551502228,0.057945135980844,0.036823976784945,-0.157630503177643,-0.018620749935508,0.018312079831958,0.020839322358370,0.020222710445523,-0.106104657053947,0.025561047717929,-0.009061376564205,0.045169629156590,-0.058388333767653,-0.058570612221956,0.061327069997787) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.040704838931561,-0.020963594317436,-0.001536609604955,0.140504166483879,-0.087450943887234,0.218921944499016,-0.105460315942764,0.054650571197271,-0.133892223238945,0.103008382022381,-0.049264371395111,0.031522233039141,0.040980935096741,-0.186861172318459,-0.230726689100266,0.014359635300934) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.014684043824673,-0.041469298303127,-0.025772610679269,0.125111371278763,-0.168268203735352,0.173525556921959,0.075256630778313,0.122427389025688,0.173130437731743,0.088109657168388,0.069693781435490,-0.066079631447792,0.126728460192680,-0.059697788208723,-0.065884917974472,0.021494787186384) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.107301577925682,0.039378494024277,-0.041881345212460,-0.034080155193806,0.027504032477736,-0.042926020920277,-0.000888103968464,-0.016678707674146,-0.035491142421961,-0.018299026414752,-0.077749036252499,0.140032485127449,-0.050845302641392,0.013274721801281,-0.103190615773201,0.009712283499539) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.158058539032936,-0.159472689032555,-0.118790283799171,-0.096247553825378,0.074132665991783,0.035616274923086,-0.114735446870327,0.000430318526924,0.028428455814719,0.094641752541065,-0.031258977949619,0.030791006982327,-0.132271498441696,-0.230495169758797,-0.286876112222672,-0.046528544276953) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.082747839391232,0.021143618971109,-0.053163826465607,-0.026757838204503,-0.037867151200771,-0.138984680175781,-0.018203621730208,0.002773661166430,0.009905138984323,-0.128953084349632,0.023206016048789,-0.090739734470844,-0.071102112531662,0.014245795086026,-0.150675743818283,-0.060853850096464) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.044608421623707,-0.192830622196198,-0.049183301627636,0.199345037341118,-0.032272595912218,0.184525981545448,-0.004176954738796,-0.029239334166050,0.000916090502869,-0.277405917644501,-0.079080231487751,-0.089992083609104,-0.005886770784855,-0.095536507666111,0.000912386109121,0.070698902010918) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.003569329623133,0.183040395379066,0.150255560874939,0.352861225605011,-0.006376728881150,0.043102301657200,0.331402152776718,0.144820287823677,-0.175671502947807,0.057085201144218,-0.146707966923714,-0.031630218029022,-0.009515766985714,-0.082038976252079,0.318083792924881,0.199279010295868) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.071938507258892,-0.187462940812111,0.034285746514797,0.188122272491455,-0.096537411212921,-0.142289742827415,-0.038661714643240,0.201111957430840,-0.086974598467350,-0.008349199779332,-0.003352151485160,-0.063881687819958,0.027830341830850,-0.096937038004398,0.095648467540741,0.103483080863953) * MODEL4_texOff(vec2(0,1));
res += mat4(0.126117691397667,0.038464773446321,-0.091658353805542,0.168283849954605,-0.042835518717766,-0.019416088238358,0.027380246669054,-0.038386743515730,-0.047556564211845,-0.300042867660522,-0.008586295880377,-0.089850217103958,0.138383537530899,0.018125325441360,-0.027779487892985,0.007957863621414) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.089159190654755,-0.173353523015976,-0.153768599033356,0.193731039762497,-0.033336404711008,0.005008109845221,-0.320372670888901,-0.058592457324266,-0.031949054449797,0.052476573735476,-0.032737076282501,-0.075281396508217,0.026383291929960,-0.152825921773911,-0.181557208299637,0.039328154176474) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.110750354826450,-0.095361560583115,-0.012183214537799,0.188037395477295,0.072047844529152,0.002430376363918,-0.024996161460876,-0.220082774758339,-0.119204334914684,0.010144925676286,-0.023800982162356,-0.067221499979496,-0.231045514345169,0.010753525421023,-0.006344731897116,0.080642394721508) * MODEL4_texOff(vec2(1,1));
res += mat4(0.030769024044275,-0.054173443466425,0.056762542575598,0.014926051720977,-0.006142518017441,-0.047442533075809,-0.012247586622834,0.072154007852077,0.137514814734459,-0.121475465595722,0.042602870613337,-0.049169555306435,-0.087242536246777,-0.078819841146469,-0.007826399058104,-0.029319060966372) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.169492319226265,-0.003138564527035,0.087490908801556,0.043190449476242,-0.211886927485466,-0.228417918086052,-0.040012355893850,0.036185432225466,-0.002689662389457,0.065139263868332,0.017520196735859,-0.017722196877003,-0.061212193220854,0.127348557114601,0.013843877241015,0.031878221780062) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.047488212585449,-0.000969456625171,-0.010595533996820,-0.015998572111130,0.081884883344173,-0.052063871175051,-0.014723029918969,0.118272475898266,-0.038231622427702,0.048312813043594,-0.026361050084233,0.066028781235218,0.013784532435238,0.046734333038330,-0.022411314770579,0.065735720098019) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.054815761744976,0.151784017682076,-0.031330764293671,0.005589134059846,0.131060540676117,-0.196203038096428,0.037184089422226,0.061076488345861,0.145667433738708,0.032803937792778,0.056405287235975,-0.060406688600779,0.068280652165413,-0.144696980714798,0.060351639986038,-0.008825353346765) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.357630252838135,-0.124900273978710,-0.052992213517427,-0.372528314590454,0.232156723737717,0.106180191040039,0.138896152377129,0.073905944824219,0.262166053056717,-0.089899718761444,0.086246013641357,0.003198783146217,-0.115519359707832,-0.134487733244896,-0.139825791120529,-0.012768908403814) * MODEL5_texOff(vec2(0,0));
res += mat4(0.036656826734543,-0.090595073997974,0.026895329356194,-0.034814022481441,0.032923422753811,-0.206119120121002,0.019811391830444,-0.066960781812668,-0.029200233519077,0.165819272398949,-0.050651419907808,-0.038442064076662,0.122272342443466,-0.033429432660341,-0.016232090070844,0.072953298687935) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.018931668251753,-0.070704020559788,0.047792639583349,-0.031917158514261,-0.018245276063681,-0.050072591751814,0.004112243186682,-0.072530955076218,0.096185140311718,0.034661430865526,0.056890007108450,0.013904176652431,-0.109880633652210,-0.020919118076563,-0.025764184072614,-0.007355446927249) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.334037035703659,-0.124629601836205,0.030262624844909,-0.056906841695309,0.043318077921867,-0.160644501447678,-0.144752442836761,-0.041341658681631,0.046645667403936,0.034937847405672,-0.004340277053416,0.045194577425718,-0.123440012335777,0.159443095326424,-0.015381754375994,0.024330386891961) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.027823952957988,0.024825023487210,0.013747003860772,0.022919580340385,-0.008744324557483,0.074203386902809,-0.000222086673602,0.050504215061665,0.048976421356201,-0.133553549647331,-0.059235963970423,0.040254443883896,0.080267466604710,-0.123263955116272,-0.063717469573021,0.033213511109352) * MODEL5_texOff(vec2(1,1));
res += mat4(0.027671921998262,0.102785445749760,-0.057330504059792,0.034668341279030,-0.004994262941182,0.054096985608339,-0.035455442965031,0.089101992547512,0.017433999106288,0.000758594193030,-0.031665571033955,0.026135144755244,-0.035620518028736,-0.026151254773140,-0.007166877854615,0.023858157917857) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.109189726412296,0.232282146811485,-0.081332392990589,0.001904932665639,0.015878828242421,-0.031242486089468,-0.092905782163143,0.029734088107944,0.005508397240192,0.014201909303665,-0.033031933009624,-0.059395629912615,0.068140178918839,-0.024264549836516,0.180018365383148,0.076648272573948) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.048161149024963,0.145431369543076,-0.012021048925817,0.034800969064236,0.042253054678440,0.085319198668003,0.002254464197904,-0.005843755323440,-0.094670854508877,-0.079131677746773,-0.034516755491495,-0.079511925578117,-0.045858744531870,0.036843430250883,-0.017688378691673,-0.055249273777008) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.121102213859558,0.036538854241371,-0.152434036135674,-0.096348054707050,-0.014310229569674,-0.171442061662674,-0.107396967709064,-0.013862312771380,0.025791855528951,0.031380567699671,0.055613044649363,-0.035995531827211,-0.007741357199848,0.031267307698727,0.172880336642265,-0.052872933447361) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.139997765421867,0.354448437690735,0.020054290071130,0.185972392559052,0.057908922433853,0.145978197455406,0.151201441884041,0.021690916270018,-0.048833329230547,-0.029538866132498,-0.043135967105627,-0.310882329940796,-0.007133045699447,-0.190358325839043,-0.309115707874298,-0.061835002154112) * MODEL6_texOff(vec2(0,0));
res += mat4(0.040813397616148,0.046113364398479,0.005988013930619,-0.045834999531507,0.136990010738373,0.077369764447212,0.084371127188206,-0.140098765492439,-0.057828459888697,0.050401080399752,-0.000392686924897,-0.182608723640442,-0.114024229347706,0.090005844831467,0.001974874641746,-0.013816379942000) * MODEL6_texOff(vec2(0,1));
res += mat4(0.043256968259811,0.038662515580654,-0.020716823637486,-0.005694757215679,-0.072954267263412,-0.156679183244705,-0.021850859746337,0.020294768735766,-0.025319995358586,0.233675017952919,0.004994669463485,-0.021174101158977,0.095477119088173,-0.038595143705606,0.009967088699341,0.014906942844391) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.126117154955864,0.088999286293983,-0.178531527519226,-0.026494860649109,0.119766779243946,-0.005589695647359,-0.051394596695900,-0.043613001704216,-0.050405327230692,-0.137847676873207,0.055861670523882,-0.003079413902014,0.105886355042458,0.020952984690666,0.184454813599586,0.062944836914539) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.006900047417730,0.093615196645260,-0.026715395972133,-0.038461800664663,0.161219894886017,0.264618068933487,0.001374329789542,-0.083949185907841,-0.036049790680408,0.135212406516075,-0.003608210245147,-0.029092162847519,-0.070737503468990,-0.031669717282057,-0.015733672305942,-0.051863539963961) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.048458524048328,-0.097604572772980,1.003235697746277,-0.236255615949631) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.064509987831116,-0.116405740380287,-0.132695704698563,-0.158334344625473);
res += mat4(0.006279241293669,0.028897484764457,-0.024271605536342,-0.022165233269334,-0.164359271526337,0.082659132778645,0.032905723899603,0.080672264099121,-0.036672640591860,-0.032206874340773,0.183041810989380,0.019412521272898,-0.066580429673195,0.021790480241179,-0.068798206746578,0.030059780925512) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.002035467186943,0.032700102776289,-0.048098653554916,-0.124939993023872,0.003272579982877,0.072124764323235,0.008864753879607,0.030985048040748,-0.041411399841309,-0.043839160352945,-0.023901389911771,-0.099139250814915,0.082013018429279,-0.065000705420971,-0.062960363924503,0.051938850432634) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.010502880439162,0.075794391334057,0.006797903683037,0.043769720941782,-0.046403381973505,-0.065104193985462,0.070987232029438,-0.049301166087389,-0.265178501605988,0.080538265407085,0.036319114267826,-0.087224602699280,0.038884561508894,-0.031472560018301,0.034459784626961,-0.026902174577117) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.065437026321888,0.030261198058724,-0.245279431343079,-0.046763353049755,-0.172478884458542,0.003214271739125,-0.161658033728600,-0.042088594287634,-0.126419708132744,0.039027120918036,0.069492802023888,0.010102601721883,0.014591014944017,0.015093659982085,0.025541355833411,-0.097838148474693) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.059886161237955,-0.077549256384373,-0.141292989253998,0.021248890087008,0.024798814207315,-0.041788417845964,-0.046369709074497,0.201990857720375,0.337237000465393,-0.077424742281437,-0.270800888538361,0.307876527309418,0.147575274109840,-0.155099734663963,-0.230871483683586,-0.152334168553352) * MODEL1_texOff(vec2(0,0));
res += mat4(0.057601556181908,-0.148163020610809,0.136538326740265,-0.161426708102226,-0.025286402553320,-0.061533309519291,0.207156643271446,0.076574303209782,-0.017933025956154,-0.207134574651718,0.224287688732147,0.065389528870583,-0.169380441308022,-0.083289697766304,0.023821050301194,0.106398075819016) * MODEL1_texOff(vec2(0,1));
res += mat4(0.069902732968330,-0.008097607642412,-0.205289453268051,0.072269238531590,0.112505674362183,0.095542401075363,-0.081143885850906,-0.062492836266756,0.021786738187075,-0.021844957023859,-0.035380352288485,0.046268835663795,0.027930121868849,0.094626761972904,-0.014070307835937,0.094604648649693) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.043146256357431,0.033669587224722,-0.061898469924927,0.006199762690812,-0.086532823741436,0.060734272003174,-0.018398668617010,0.278901219367981,-0.021506203338504,0.135529175400734,-0.000673581438605,-0.092844627797604,-0.064546272158623,0.013516343198717,0.165238514542580,0.178826570510864) * MODEL1_texOff(vec2(1,0));
res += mat4(0.052065655589104,-0.154798790812492,0.199824199080467,-0.032175224274397,0.031884651631117,-0.105311013758183,-0.057541560381651,0.074703209102154,0.033683493733406,-0.195953458547592,0.000626767170615,-0.016939539462328,0.074782647192478,-0.099948145449162,-0.075382933020592,-0.163332775235176) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.061285801231861,0.064276933670044,-0.012938124127686,0.026461089029908,-0.007848833687603,-0.059722002595663,-0.093273878097534,0.038703583180904,0.085487276315689,0.007289916276932,0.088188856840134,-0.097016036510468,0.009038166143000,0.011872283183038,0.004711261019111,0.084277622401714) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.002317701233551,0.107905142009258,0.023743987083435,0.077136710286140,0.017440276220441,0.124962493777275,-0.007545327302068,0.078394122421741,0.015094144269824,0.072287499904633,0.063089318573475,-0.145576760172844,-0.057530455291271,0.031971048563719,-0.065537080168724,-0.062899231910706) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.127789348363876,-0.082822017371655,-0.046131551265717,-0.226097062230110,-0.107674494385719,-0.054487530142069,0.049579996615648,0.018026741221547,-0.130308985710144,-0.006657070014626,-0.064899303019047,-0.083240032196045,-0.199321225285530,0.083870165050030,0.044629920274019,-0.065204627811909) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.120907664299011,-0.044149566441774,0.090761862695217,-0.041194759309292,-0.047319244593382,-0.126703113317490,0.107986986637115,0.028411189094186,0.121892340481281,0.008302944712341,0.057848375290632,-0.087931901216507,-0.308387428522110,0.100477017462254,0.182551637291908,-0.094515740871429) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.172751277685165,0.100446745753288,-0.111115030944347,0.132515057921410,0.075237862765789,-0.133511409163475,-0.145794704556465,-0.031421251595020,-0.244029611349106,0.131450161337852,-0.226287558674812,-0.041682954877615,0.214993432164192,-0.183574751019478,-0.072251029312611,0.099218979477882) * MODEL2_texOff(vec2(0,0));
res += mat4(0.048381607979536,0.134419843554497,0.135997042059898,0.008997691795230,-0.017388714477420,-0.153674304485321,0.183954000473022,0.166964516043663,0.054137688130140,-0.016387570649385,0.201343223452568,-0.174921005964279,-0.194387406110764,0.183971360325813,-0.081206589937210,-0.090407833456993) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.046178232878447,-0.004709549713880,-0.018059441819787,0.001129503012635,0.010630219243467,-0.013909513130784,-0.072319023311138,0.138390302658081,-0.094806097447872,-0.034722447395325,0.084824189543724,-0.215589821338654,0.102239921689034,-0.018789855763316,0.005839810241014,-0.024364804849029) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.016834013164043,0.112646497786045,0.030278459191322,-0.119100391864777,0.019205382093787,-0.159467339515686,-0.006571244914085,-0.049792364239693,0.015999585390091,-0.050304371863604,-0.024336567148566,-0.217873930931091,-0.192391902208328,-0.001836020965129,-0.129730701446533,-0.018224021419883) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.038176339119673,0.161334395408630,0.023094734176993,-0.025904340669513,-0.004674996249378,-0.212131664156914,0.043606102466583,0.017434595152736,-0.018861701712012,0.153056800365448,-0.044997118413448,-0.050625629723072,0.013508282601833,0.029392255470157,0.106882184743881,-0.094885438680649) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.042469248175621,-0.029711345210671,0.035540249198675,-0.130205839872360,-0.076014995574951,-0.058996040374041,0.080606535077095,-0.093833364546299,0.042278118431568,0.003601162694395,0.023269547149539,0.039852701127529,0.027289105579257,0.020925030112267,-0.038655221462250,-0.005844300147146) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.020916165784001,-0.016950665041804,0.008451240137219,0.025318967178464,-0.055076353251934,-0.013266121968627,0.155810087919235,0.021428573876619,0.060417171567678,0.015582930296659,-0.035044204443693,-0.064664281904697,0.185057803988457,-0.006278887391090,-0.022068236023188,0.124399855732918) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.025396106764674,-0.068372353911400,-0.003772450610995,-0.199650719761848,-0.100742526352406,-0.080526597797871,0.085419751703739,-0.057628866285086,-0.107457056641579,-0.011807282455266,-0.062928378582001,-0.066356770694256,0.232006654143333,0.001191694522277,-0.042430810630322,-0.001809597481042) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.062726736068726,-0.027273934334517,0.049848780035973,0.051355965435505,0.214187443256378,-0.081845335662365,-0.000760024122428,0.083959951996803,-0.085718706250191,0.025470497086644,0.040527142584324,-0.045871589332819,-0.090983487665653,0.012547288089991,-0.026995414867997,-0.198615446686745) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.018781954422593,0.130538105964661,-0.053566291928291,0.112324275076389,-0.062794141471386,0.048459026962519,0.174910381436348,-0.082721687853336,0.329399049282074,0.051195044070482,0.040236227214336,-0.049714520573616,0.333839327096939,0.120560437440872,0.029741255566478,-0.270954817533493) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.214264973998070,0.003747083945200,0.107631243765354,0.338670909404755,0.002691289177164,-0.094679869711399,0.253970533609390,0.158454447984695,0.259648323059082,-0.024103431031108,0.238102421164513,0.058241639286280,-0.063218720257282,0.079165130853653,-0.328876912593842,-0.123738914728165) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.108906984329224,0.021157165989280,0.080915145576000,0.165709123015404,-0.003845358034596,-0.164871439337730,0.045861031860113,0.012267346493900,0.150577887892723,-0.039032246917486,-0.066383570432663,0.006336173042655,0.042683061212301,-0.022418774664402,-0.067015640437603,0.009376420639455) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.022612901404500,0.039411228150129,0.042534857988358,0.167150244116783,0.105579584836960,0.006036402657628,0.176917567849159,-0.080434247851372,-0.022322814911604,-0.026741584762931,-0.076448060572147,0.056861609220505,0.019279822707176,0.105478771030903,0.031704016029835,0.055981270968914) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.051452413201332,-0.030099472030997,0.085175290703773,0.322561919689178,-0.053278755396605,-0.244478866457939,-0.054732847958803,-0.108799822628498,0.195295721292496,0.041921999305487,-0.104227922856808,-0.045011036098003,0.039089534431696,0.158438071608543,-0.091879315674305,-0.133708164095879) * MODEL3_texOff(vec2(1,1));
res += mat4(0.016370235010982,-0.048764251172543,-0.071290418505669,-0.118869416415691,-0.071260839700699,0.017102271318436,-0.025225080549717,0.051935900002718,0.024046055972576,-0.219564244151115,-0.036315344274044,0.145026206970215,-0.041750736534595,-0.001375303021632,-0.055230367928743,-0.082191713154316) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.016359195113182,-0.090065240859985,0.038792978972197,0.131187394261360,0.007329481188208,-0.001027805497870,-0.010660715401173,-0.144208118319511,0.166853994131088,0.185600653290749,-0.070567458868027,0.039246976375580,-0.186385899782181,-0.112151607871056,-0.016685316339135,0.035325553268194) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.007461302913725,-0.116044774651527,-0.020918481051922,0.226918056607246,0.013803218491375,0.022844124585390,-0.001718077226542,-0.113842837512493,0.046856604516506,-0.150991782546043,0.084670990705490,0.019605563953519,0.044723164290190,-0.085034154355526,0.045021008700132,0.298179447650909) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.043905973434448,0.009829716756940,-0.047175779938698,0.185611680150032,0.116798944771290,0.013038023374975,0.034673947840929,0.012909550219774,0.104409977793694,-0.163152709603310,-0.153229460120201,0.024282123893499,-0.042639717459679,0.002991784131154,-0.133715093135834,0.031500052660704) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.087089307606220,-0.012808032333851,0.005235990509391,-0.099641807377338,-0.032217618077993,-0.053843334317207,-0.003775590099394,-0.014656703919172,0.152462542057037,0.151186868548393,0.005338756367564,0.001448884489946,-0.069593973457813,-0.035952508449554,0.144884020090103,-0.032205577939749) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.020488439127803,-0.034967467188835,0.045211952179670,0.112202659249306,0.122022822499275,-0.088529065251350,0.137963369488716,0.019171848893166,0.004582967609167,-0.164224252104759,0.100427366793156,0.006535166408867,-0.062622442841530,0.055380087345839,0.018216004595160,0.084943637251854) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.008397852070630,0.085646711289883,-0.120509363710880,0.322971642017365,0.035746496170759,0.003683204529807,0.087080024182796,-0.021479526534677,0.084747679531574,-0.024538187310100,-0.105013072490692,-0.017843199893832,-0.075726047158241,0.035685244947672,-0.028926959261298,0.115151435136795) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.048483770340681,-0.015596753917634,-0.095048613846302,0.080838568508625,-0.019115231931210,-0.093037724494934,-0.010292410850525,0.122529633343220,0.103492312133312,0.201835542917252,-0.093776017427444,-0.001813831971958,-0.085008978843689,0.050066921859980,0.061750549823046,0.016215728595853) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.045137476176023,-0.145395576953888,-0.106708019971848,-0.037609755992889,0.197679430246353,0.143920451402664,0.028954397886992,-0.038076445460320,0.040084410458803,-0.344421744346619,0.069657333195210,0.000313011260005,-0.040969014167786,-0.271463721990585,-0.008784580975771,-0.101292520761490) * MODEL4_texOff(vec2(1,1));
res += mat4(0.034786511212587,0.015975076705217,-0.009411581791937,0.032625991851091,0.011083062738180,0.070326291024685,-0.059119969606400,0.083518475294113,0.034776985645294,0.115969881415367,-0.010355731472373,-0.170450329780579,-0.111668415367603,-0.042867265641689,0.119102634489536,0.047826346009970) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.013335994444788,0.070405051112175,0.021997043862939,-0.071752302348614,-0.034714154899120,-0.150668203830719,-0.027668820694089,0.056383810937405,0.015583549626172,0.027189262211323,-0.138792067766190,0.005717256106436,-0.050436135381460,-0.056347586214542,0.090977549552917,0.072456955909729) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.039749290794134,0.038594547659159,-0.080017618834972,-0.017950326204300,-0.103511489927769,0.022251302376390,0.032957963645458,0.035058796405792,0.115131266415119,-0.015376198105514,-0.112709417939186,0.042265977710485,0.185174688696861,0.026628831401467,0.088978469371796,0.122273735702038) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.033965330570936,0.086445003747940,-0.197553828358650,0.070661172270775,0.083791211247444,-0.002285527763888,0.031976576894522,0.075598411262035,0.014819983392954,0.015082107856870,0.110478736460209,0.110049203038216,-0.107963040471077,0.044374469667673,-0.069366946816444,-0.150571122765541) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.262151271104813,-0.282361388206482,0.012338825501502,-0.110682576894760,0.002704064594582,0.199461698532104,-0.101286642253399,0.196923226118088,0.193330436944962,0.252703100442886,-0.230526253581047,-0.018252845853567,0.206520318984985,-0.028204983100295,0.082764118909836,0.038606572896242) * MODEL5_texOff(vec2(0,0));
res += mat4(0.057791057974100,-0.084829889237881,0.068859390914440,-0.049461577087641,0.012825714424253,0.037722166627645,0.030470538884401,0.226240932941437,0.052661348134279,0.200258731842041,-0.287031173706055,-0.103424996137619,-0.047049093991518,0.097306117415428,-0.130511492490768,-0.105311475694180) * MODEL5_texOff(vec2(0,1));
res += mat4(0.032373458147049,0.050273552536964,0.061218675225973,-0.088139303028584,0.000175466877408,-0.025946084409952,-0.075152672827244,0.079956091940403,-0.006801143754274,-0.083629176020622,-0.097148746252060,-0.107430242002010,-0.027907593175769,-0.135980531573296,0.035886984318495,-0.001054826891050) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.019114997237921,-0.264610081911087,0.007871787995100,0.027251228690147,0.053891841322184,0.015690637752414,-0.039353370666504,0.128135189414024,0.006526471115649,0.381147593259811,-0.133916318416595,-0.076516747474670,-0.121860742568970,0.038197144865990,-0.006689809262753,-0.123816750943661) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.012272089719772,-0.142655730247498,-0.050519242882729,-0.106387227773666,0.022035164758563,0.009266240522265,-0.022473396733403,-0.045601297169924,-0.009012972004712,0.142720803618431,-0.168669492006302,0.060558933764696,-0.033537384122610,0.009477791376412,-0.017762714996934,0.104655951261520) * MODEL5_texOff(vec2(1,1));
res += mat4(0.158798128366470,0.025286966934800,0.137619420886040,0.068227745592594,-0.022402478381991,-0.057682041078806,0.040694911032915,-0.014515559189022,0.071507483720779,-0.045455552637577,-0.106900319457054,0.043810617178679,0.039870366454124,-0.072906889021397,0.025270877406001,-0.040974043309689) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.273094147443771,-0.076817817986012,-0.003901984309778,0.159219339489937,-0.110191740095615,0.031614329665899,0.048317354172468,0.059541031718254,-0.002458750735968,0.047251123934984,-0.123632371425629,-0.134073749184608,-0.021373059600592,0.027646683156490,0.118678301572800,-0.088209249079227) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.006341790314764,-0.005690955556929,-0.076374925673008,0.119926810264587,-0.194886595010757,0.064788445830345,0.018690409138799,0.004541746806353,0.067991986870766,-0.120197363197803,0.206560522317886,-0.139688104391098,0.017256326973438,-0.004482082091272,-0.013779632747173,0.050407897680998) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.120053999125957,-0.077830664813519,0.043818771839142,0.161309033632278,0.183783918619156,-0.058997720479965,-0.029010647907853,0.001144412090071,-0.083480507135391,0.015117233619094,0.075984850525856,-0.157246232032776,-0.140938594937325,-0.041504010558128,0.190014079213142,-0.004951484035701) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.051388762891293,0.197500243782997,-0.079756356775761,-0.198354527354240,-0.184628292918205,-0.030859034508467,0.238828778266907,-0.222410231828690,-0.084624603390694,-0.064458839595318,-0.076333254575729,-0.088031530380249,-0.201884701848030,0.071203105151653,0.070462375879288,0.159670397639275) * MODEL6_texOff(vec2(0,0));
res += mat4(0.135415226221085,-0.026548150926828,0.078329786658287,0.109946332871914,-0.178916081786156,0.067564837634563,0.006146536208689,0.005329592619091,-0.023784922435880,-0.063394390046597,0.074491269886494,-0.098382659256458,0.087161265313625,-0.066334962844849,-0.108116745948792,-0.078276276588440) * MODEL6_texOff(vec2(0,1));
res += mat4(0.006196569185704,0.043319527059793,0.080331332981586,0.064184293150902,-0.018028883263469,-0.053041815757751,0.177187144756317,-0.077331393957138,-0.068627700209618,0.032883729785681,0.015689786523581,-0.038042921572924,-0.104035489261150,0.052936829626560,0.164561703801155,0.054974675178528) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.031054610386491,0.096990011632442,0.099648825824261,0.080883823335171,-0.080482661724091,-0.051969699561596,0.206774130463600,0.041914261877537,0.065897926688194,-0.045735523104668,0.070207692682743,-0.219616815447807,0.055535435676575,0.088408514857292,0.128316923975945,-0.103481784462929) * MODEL6_texOff(vec2(1,0));
res += mat4(0.011952823027968,-0.009413915686309,-0.130587056279182,-0.066828288137913,-0.016718646511436,0.228561639785767,-0.128007933497429,-0.053222872316837,-0.032549496740103,-0.156280115246773,-0.031711012125015,-0.079383060336113,0.056083962321281,-0.076204612851143,-0.052622418850660,0.090901926159859) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.561429262161255,-0.024924196302891,0.083039678633213,-0.023162938654423) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.074447631835938,-0.160936370491982,-0.277632594108582,-0.062392294406891);
res += mat4(-0.130342110991478,-0.007276222575456,0.043434172868729,-0.089040368795395,-0.065243639051914,-0.083579711616039,0.046096406877041,-0.173214718699455,0.233563810586929,-0.013779704459012,0.055224023759365,-0.068788498640060,-0.082908995449543,0.019719608128071,0.009356327354908,0.029893938452005) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.074492074549198,-0.089634500443935,0.082510344684124,-0.059217777103186,0.007604475133121,-0.085045836865902,0.086813025176525,-0.090319752693176,0.036698825657368,0.057249847799540,0.082100436091423,-0.266729384660721,0.071114346385002,-0.026925636455417,-0.024028599262238,0.096470221877098) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.005980355665088,0.051701936870813,0.031989511102438,-0.008490899577737,-0.018642712384462,0.051080524921417,0.007838622666895,0.065224856138229,-0.016179665923119,0.104977421462536,-0.021098025143147,0.088902652263641,0.003925079479814,-0.066089674830437,-0.009071581065655,-0.043366979807615) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.441362679004669,0.107716158032417,-0.126382097601891,0.127366751432419,-0.327054113149643,-0.022763641551137,-0.306117981672287,-0.080627068877220,0.071976043283939,0.003725592745468,-0.149948269128799,0.165961459279060,-0.040622133761644,0.122442871332169,-0.018868632614613,0.035517275333405) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.164788424968719,-0.099190860986710,-0.139172405004501,-0.145188227295876,0.201761528849602,-0.143994018435478,-0.042067967355251,-0.050382886081934,0.109289631247520,-0.227657973766327,-0.086499616503716,0.293912649154663,0.220864579081535,-0.223217010498047,-0.075976595282555,-0.274211019277573) * MODEL1_texOff(vec2(0,0));
res += mat4(0.015617381781340,-0.044176682829857,-0.006983412429690,0.006086730863899,-0.076549537479877,0.057313058525324,0.022280929610133,-0.033030427992344,-0.131255418062210,-0.031120860949159,0.093244291841984,0.021671287715435,-0.045704498887062,0.040621016174555,-0.093332149088383,-0.078324556350708) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.065947532653809,-0.002883503912017,0.088819742202759,-0.029787641018629,-0.092592813074589,-0.129861980676651,0.110942378640175,-0.016107257455587,-0.003724496345967,0.039581719785929,-0.055831294506788,-0.027714030817151,0.094549037516117,0.013853388838470,0.073451101779938,-0.063774123787880) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.016376923769712,0.007265543565154,-0.108919516205788,-0.150970965623856,0.125755473971367,0.057136595249176,0.095355957746506,0.047002095729113,0.034577947109938,0.000314007746056,0.112932741641998,0.029394410550594,0.014336721971631,0.041558619588614,0.134228184819221,0.110864385962486) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.013886787928641,-0.027926515787840,-0.048891577869654,0.066063635051250,-0.069901913404465,-0.090773589909077,-0.034695714712143,-0.036870852112770,-0.079942740499973,-0.030084459111094,0.020036919042468,0.035741396248341,0.010272658430040,0.002206707373261,0.019606629386544,-0.046545725315809) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.076511390507221,0.004833394195884,0.084810480475426,-0.048021707683802,-0.126641109585762,-0.143577262759209,-0.039396952837706,-0.049832124263048,0.024333434179425,-0.049686864018440,0.114476300776005,-0.206867352128029,-0.005762679502368,-0.023554541170597,0.065258622169495,-0.214363172650337) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.149026080965996,-0.112328149378300,-0.013612951152027,-0.075742132961750,0.169639289379120,-0.197698220610619,0.063125513494015,-0.101179659366608,-0.086731880903244,-0.055242959409952,0.168339520692825,-0.125693842768669,-0.117073737084866,0.073040843009949,0.127757832407951,-0.265314042568207) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.101724974811077,-0.068750329315662,0.097737699747086,0.021163867786527,-0.038657471537590,0.140308633446693,0.065479718148708,-0.143202021718025,0.027615342289209,-0.059356581419706,-0.015927577391267,0.077041216194630,0.039343856275082,-0.065578296780586,-0.020228870213032,-0.073631092905998) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.027580941095948,-0.165843054652214,0.173525944352150,0.049134023487568,-0.218696624040604,-0.046056162565947,0.022538729012012,-0.065872855484486,-0.006355478893965,-0.179822117090225,0.113084979355335,0.052655611187220,-0.084865920245647,0.118160225450993,-0.044559706002474,0.138704672455788) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.009648634120822,0.160773172974586,0.166120052337646,0.123759135603905,0.078675396740437,-0.133331134915352,-0.167676806449890,0.048863153904676,0.026982322335243,0.040133189409971,-0.083613798022270,0.108645878732204,-0.104811400175095,-0.024926166981459,0.018641872331500,-0.006901785731316) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.042495612055063,-0.185783803462982,0.145754247903824,0.044496256858110,-0.053151927888393,-0.109045989811420,-0.133715882897377,0.145374745130539,-0.051573961973190,-0.026069311425090,-0.082690328359604,0.002775691682473,0.025280365720391,-0.012396396137774,-0.032923601567745,0.074857383966446) * MODEL2_texOff(vec2(0,1));
res += mat4(0.056420177221298,0.037656936794519,0.026909142732620,0.175826162099838,-0.127883926033974,-0.029027305543423,-0.034354582428932,-0.168702512979507,-0.042237836867571,0.005194338038564,-0.013636765070260,0.021319735795259,-0.052512198686600,-0.019662678241730,-0.073155455291271,0.002843193709850) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.052737377583981,-0.075086005032063,0.132067218422890,0.108324609696865,0.022088835015893,-0.054543428122997,0.012914484366775,-0.004791466984898,-0.005251238122582,-0.143946826457977,0.023503350093961,0.146427616477013,0.020534712821245,-0.069370634853840,-0.109311431646347,-0.000713444256689) * MODEL2_texOff(vec2(1,0));
res += mat4(0.027515986934304,-0.001215588185005,0.047388292849064,-0.063001409173012,0.051811866462231,-0.020013682544231,0.015216657891870,-0.092595294117928,0.016561269760132,-0.004284139256924,0.171976983547211,-0.011932292953134,-0.096389964222908,0.116874270141125,-0.067008756101131,-0.058488272130489) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.139861002564430,0.001809999695979,-0.009178926236928,0.218961060047150,-0.021981855854392,0.009759701788425,0.025322834029794,0.128647401928902,0.129975646734238,-0.059475362300873,-0.007548549212515,-0.008383790962398,0.077606827020645,0.035326804965734,-0.058966062963009,0.085023485124111) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.023459078744054,0.100161895155907,-0.126292213797569,0.147233560681343,0.006363672204316,-0.187911406159401,-0.110685579478741,0.106917209923267,0.171413749456406,0.243415921926498,0.047884348779917,-0.152484968304634,-0.016507461667061,0.019684335216880,-0.080889455974102,0.029428411275148) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.024189203977585,-0.146353363990784,0.061817172914743,-0.050931174308062,-0.167575284838676,0.094999231398106,-0.024214752018452,-0.023414311930537,-0.134489998221397,0.290112316608429,0.028210418298841,-0.078034415841103,-0.065195232629776,0.005044930148870,0.094266586005688,-0.115794293582439) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.041389688849449,0.004907655529678,0.198653891682625,0.025205114856362,-0.024006059393287,-0.133407101035118,-0.074127994477749,-0.129706606268883,0.154385715723038,0.224879458546638,-0.004023957997561,-0.121552690863609,0.091022409498692,0.117521829903126,0.057299844920635,0.022985069081187) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.057612899690866,-0.038478523492813,0.273218393325806,0.009318266063929,0.105526171624660,-0.098938524723053,0.019589651376009,-0.071078315377235,0.004310450516641,0.112007632851601,-0.009817901067436,-0.117275513708591,-0.179746672511101,0.065673395991325,0.199387118220329,-0.073039412498474) * MODEL3_texOff(vec2(0,0));
res += mat4(0.008450947701931,0.084059558808804,-0.000635302392766,-0.020421944558620,-0.169771909713745,-0.023614326491952,-0.010446957312524,-0.059628501534462,-0.069637767970562,0.085294090211391,-0.168126031756401,-0.034945648163557,0.175164222717285,0.017673291265965,-0.027203075587749,0.032035075128078) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.039353996515274,0.008633763529360,0.197360128164291,0.151160836219788,0.047112524509430,-0.058057904243469,0.032138157635927,0.033046148717403,-0.025758026167750,-0.066289238631725,0.018402179703116,0.021762894466519,0.077860765159130,-0.086993612349033,0.094731822609901,-0.078574024140835) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.014107220806181,-0.024491816759109,0.185216411948204,0.239227920770645,-0.057333193719387,0.023791443556547,-0.022809496149421,-0.014197348617017,0.154009401798248,0.143515631556511,-0.223037809133530,0.043407298624516,0.014605952426791,0.081295192241669,0.019975427538157,0.049809288233519) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.021728942170739,-0.098643213510513,0.140299409627914,0.190909668803215,-0.039874207228422,-0.113626144826412,-0.163569912314415,0.036999575793743,0.113655254244804,0.187422797083855,0.169992014765739,-0.065101936459541,0.050283465534449,0.075819142162800,0.040087800472975,0.043230254203081) * MODEL3_texOff(vec2(1,1));
res += mat4(0.009113805368543,-0.020079776644707,-0.152023196220398,0.213778853416443,-0.014984117820859,-0.118239715695381,0.020330384373665,-0.360676229000092,-0.090288616716862,0.121630832552910,0.150804951786995,-0.017400717362761,0.029647773131728,0.059187240898609,-0.065682798624039,0.270667523145676) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.084328390657902,0.005711943376809,-0.165402218699455,0.210077330470085,-0.062151402235031,0.006025787908584,0.146565839648247,-0.200128376483917,0.071279846131802,-0.211168065667152,0.131261140108109,0.040377974510193,-0.064823634922504,0.071457311511040,-0.090290568768978,0.423751920461655) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.059294201433659,0.019223896786571,-0.168589666485786,-0.022457599639893,0.009358423762023,-0.029154045507312,-0.020786415785551,-0.045434668660164,-0.089255712926388,0.014597719535232,0.076456420123577,-0.093672513961792,0.154185503721237,-0.066570498049259,-0.040368974208832,0.108675241470337) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.082690685987473,-0.005924437660724,0.247369140386581,-0.157636836171150,0.189801514148712,0.071069844067097,-0.153300821781158,-0.101156540215015,-0.184723168611526,-0.129585847258568,-0.080607958137989,-0.101121366024017,-0.099491544067860,0.005567408632487,0.085284695029259,0.095182619988918) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.047159306704998,-0.119642332196236,0.252684861421585,-0.213397964835167,-0.094163455069065,0.005965490359813,-0.046400938183069,-0.094400934875011,0.165978059172630,-0.171386212110519,-0.064098782837391,0.076293751597404,0.134593546390533,-0.159037321805954,0.217537730932236,0.160635516047478) * MODEL4_texOff(vec2(0,0));
res += mat4(0.047080252319574,-0.007235054858029,0.178669601678848,-0.167330607771873,-0.035180583596230,-0.108294241130352,-0.087544314563274,-0.006384467240423,-0.050251405686140,0.024910373613238,-0.076622799038887,0.073839113116264,-0.002491884166375,0.019026456400752,0.144172221422195,0.091398678719997) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.079112462699413,-0.027996266260743,0.072172127664089,-0.083734586834908,0.005855835974216,0.124603994190693,-0.049238771200180,0.148032069206238,0.094488784670830,-0.197008982300758,-0.073895141482353,-0.172198697924614,-0.029289502650499,-0.046459946781397,0.022909229621291,-0.048585433512926) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.042710170149803,-0.044259116053581,0.157389640808105,-0.121938668191433,-0.048403352499008,-0.083124890923500,0.109567873179913,0.231108695268631,0.029735567048192,0.220633938908577,0.054772298783064,-0.076500281691551,0.106108613312244,0.093011572957039,-0.198667123913765,-0.016666475683451) * MODEL4_texOff(vec2(1,0));
res += mat4(0.072417095303535,0.012426380999386,0.032781995832920,0.092696070671082,0.019878868013620,0.009397529065609,0.065058887004852,-0.047280836850405,-0.109468169510365,-0.086143083870411,-0.014099115505815,-0.047408573329449,-0.060899011790752,-0.095970563590527,-0.083706423640251,0.108594767749310) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.043088905513287,0.046977203339338,0.070756122469902,-0.075485281646252,0.006449068430811,0.087229147553444,-0.063858866691589,0.042867563664913,-0.054592713713646,-0.015000658109784,-0.050592076033354,-0.087681226432323,0.110014520585537,0.010664781555533,0.051272604614496,0.144236922264099) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.076125741004944,-0.001154085970484,0.109363920986652,-0.088867679238319,0.020370913669467,-0.165725305676460,-0.001925725257024,0.066872283816338,-0.169455423951149,0.198777884244919,-0.057047091424465,0.044005002826452,-0.013749760575593,0.141565486788750,0.011827167123556,0.241559207439423) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.012203438207507,-0.062642499804497,-0.011997473426163,0.017021872103214,0.079819202423096,0.087744332849979,0.021421819925308,0.109882101416588,0.043021034449339,-0.170112833380699,0.014873650856316,-0.008305812254548,0.087136074900627,-0.235722914338112,0.023090796545148,0.018456922844052) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.266904085874557,-0.013205974362791,-0.221130594611168,-0.097740747034550,0.015998274087906,-0.008633534424007,0.165437579154968,0.176797106862068,0.158143222332001,0.113315179944038,-0.030773323029280,0.013216192834079,-0.031382590532303,-0.034700315445662,-0.145932689309120,-0.031150473281741) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.133556172251701,-0.054486565291882,-0.498729944229126,0.025299688801169,0.086368493735790,0.032941214740276,0.232776418328285,0.142403349280357,-0.253714591264725,-0.020107122138143,0.082583390176296,-0.132660746574402,-0.184911340475082,-0.278514236211777,0.025108952075243,-0.155973777174950) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.073024615645409,-0.018131768330932,-0.040063574910164,-0.052945509552956,-0.021311612799764,0.053344078361988,0.103643670678139,0.040927801281214,0.155829295516014,-0.076720379292965,-0.035187561064959,-0.025403022766113,0.198811873793602,0.127041593194008,0.021740527823567,0.135637253522873) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.059254303574562,0.043061595410109,-0.078812181949615,-0.037127681076527,0.017615457996726,0.015105499885976,-0.040819853544235,-0.002387664513662,0.107735499739647,0.006690170615911,0.051294129341841,0.022368505597115,0.065317243337631,0.011941634118557,-0.004132612142712,-0.035619713366032) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.005787376314402,-0.064066842198372,-0.033885780721903,-0.041081469506025,0.023031763732433,0.082348361611366,0.022047217935324,0.113263487815857,-0.175555497407913,0.018614985048771,-0.144604757428169,0.029947025701404,0.060815695673227,-0.063138380646706,0.180475860834122,-0.001629154314287) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.035531714558601,0.010076431557536,-0.015890425071120,-0.009290706366301,0.020668243989348,-0.029697967693210,-0.023055864498019,0.060561947524548,0.084113091230392,0.132720857858658,0.029607675969601,0.101692721247673,0.022943377494812,0.139624118804932,0.150848641991615,0.022157825529575) * MODEL5_texOff(vec2(1,1));
res += mat4(0.090472221374512,0.120390668511391,0.019052827730775,0.241385683417320,0.048678725957870,0.037870965898037,-0.048224911093712,0.020464459434152,-0.101613938808441,-0.142770200967789,-0.016288027167320,0.018770486116409,0.158324107527733,0.078009165823460,-0.096207067370415,0.006895591504872) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.020593818277121,-0.035942237824202,-0.000713699264452,0.039925865828991,-0.003792943432927,-0.138163328170776,0.024089777842164,-0.044758975505829,-0.074142768979073,0.026807848364115,0.001514612464234,-0.024558322504163,0.042453762143850,-0.008396205492318,0.069389089941978,-0.189826071262360) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.050852280110121,0.069617897272110,-0.057186797261238,0.045188512653112,-0.099789366126060,-0.011995591223240,-0.013086196035147,-0.003655457636341,-0.053767133504152,-0.096564501523972,-0.036469891667366,0.016480553895235,-0.038365300744772,0.065566867589951,-0.024333726614714,0.053964663296938) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.185032770037651,0.028850199654698,0.242661044001579,0.166103586554527,0.133330151438713,-0.144569709897041,0.045433599501848,-0.034226685762405,-0.049703311175108,0.002640566555783,0.014052295126021,-0.033167965710163,0.222017005085945,0.020216513425112,-0.080137573182583,-0.101859651505947) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.034982621669769,0.206731632351875,0.162149310112000,-0.031423646956682,0.151404291391373,0.127842783927917,-0.064250439405441,0.062961116433144,0.029223969206214,-0.071393735706806,-0.096178404986858,0.011867542751133,0.159402936697006,0.023449923843145,-0.257396936416626,0.229447960853577) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.090440191328526,-0.058988180011511,0.076187230646610,0.012055727653205,0.003570347558707,0.199770271778107,-0.053172692656517,-0.065379887819290,0.023109540343285,0.062336388975382,0.027266377583146,0.003020556643605,-0.012415163218975,-0.082103207707405,-0.032414618879557,0.060205571353436) * MODEL6_texOff(vec2(0,1));
res += mat4(0.072722874581814,0.044939577579498,0.028661953285336,0.053045380860567,0.097389966249466,-0.054721772670746,0.014554507099092,0.040211744606495,-0.052594158798456,0.016434302553535,-0.134256511926651,-0.135652944445610,0.002336523262784,0.009074987843633,-0.063656479120255,-0.018476158380508) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.019849410280585,0.053017929196358,0.014395936392248,-0.026340425014496,0.176024854183197,0.263063609600067,0.097941085696220,0.075317956507206,-0.017080498859286,-0.167652174830437,-0.182699829339981,-0.272719979286194,0.051872357726097,-0.027441225945950,-0.024418931454420,-0.023124450817704) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.036072924733162,0.052759192883968,-0.002361142775044,0.046513795852661,-0.222909063100815,-0.089896902441978,-0.060586325824261,-0.000910014437977,-0.005286188330501,0.011750051751733,-0.090537846088409,-0.096190221607685,-0.000581628875807,-0.179232329130173,-0.049481630325317,0.013305081054568) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.038483552634716,-0.104113183915615,-0.378859728574753,-0.051513429731131) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.299637615680695,-0.043003134429455,-0.134763285517693,0.129165455698967);
res += mat4(-0.038355272263288,0.029198046773672,0.038120359182358,0.064762331545353,-0.200654193758965,0.038984138518572,-0.057733908295631,-0.065654002130032,-0.032302070409060,0.028427815064788,0.093476235866547,0.002760456176475,0.014975463040173,-0.007415161933750,0.032841101288795,0.052123002707958) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.024103276431561,0.008108830079436,-0.105940870940685,0.045144490897655,-0.073390133678913,0.048812400549650,0.053439002484083,-0.034786649048328,0.056143734604120,0.176301807165146,-0.052521366626024,-0.072055310010910,0.024065366014838,-0.164745822548866,-0.074814893305302,-0.082159347832203) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.006691490765661,-0.011562661267817,0.030036788433790,-0.060319468379021,0.002737682778388,-0.025517322123051,-0.048485588282347,-0.004861105233431,0.148279607295990,-0.009399781003594,0.009562204591930,0.008890758268535,-0.012776083312929,0.061411466449499,0.055819425731897,-0.028192009776831) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.111861154437065,-0.019759794697165,0.102349795401096,-0.123994238674641,0.144921660423279,-0.127377405762672,-0.013182412832975,0.208635583519936,-0.013831472024322,0.074541456997395,0.114232875406742,-0.032704159617424,0.012183474376798,-0.042642336338758,0.135796844959259,0.013509788550436) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.218652933835983,0.076586514711380,-0.320827901363373,0.058616623282433,0.144914537668228,-0.016005912795663,0.055741395801306,-0.151806563138962,-0.164992347359657,-0.526059091091156,-0.015882315114141,0.054054129868746,-0.082437627017498,-0.304551333189011,-0.268233120441437,0.148486405611038) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.130402222275734,-0.005484354216605,-0.089962095022202,0.016940917819738,0.064531728625298,0.024472666904330,-0.074812598526478,0.219226449728012,-0.076704710721970,0.222138166427612,-0.367262184619904,0.003690915182233,-0.075303517282009,0.010225845500827,0.250083178281784,-0.031808137893677) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.018148289993405,-0.005119955167174,-0.100665308535099,0.029915193095803,-0.090316221117973,-0.144200652837753,-0.015984181314707,0.057657290250063,-0.017091507092118,0.055981390178204,-0.047280561178923,-0.021617610007524,-0.033534564077854,0.005331398453563,0.092506371438503,-0.075070738792419) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.056014712899923,0.053424794226885,0.007415194530040,-0.101696059107780,-0.095577396452427,-0.044387593865395,0.104409031569958,0.082661241292953,-0.036681320518255,0.061768453568220,0.054728440940380,-0.082355543971062,-0.050981208682060,0.362492203712463,-0.086623959243298,0.005581361241639) * MODEL1_texOff(vec2(1,0));
res += mat4(0.001827796804719,0.013304226100445,-0.036067407578230,-0.083112947642803,0.016823453828692,0.022012144327164,-0.117325372993946,-0.029910866171122,0.099730782210827,0.080760896205902,-0.115063555538654,-0.102845035493374,-0.026440262794495,-0.029359580948949,0.062908962368965,0.019843110814691) * MODEL1_texOff(vec2(1,1));
res += mat4(0.145503997802734,-0.014134307391942,0.029455294832587,-0.074666276574135,0.001066991244443,-0.011591700837016,-0.020990537479520,-0.009743823669851,0.053704239428043,0.025082627311349,0.029931122437119,-0.032198548316956,-0.012570136226714,0.017021855339408,0.033929605036974,0.084899432957172) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.218918025493622,0.212929919362068,-0.167954474687576,-0.022871229797602,-0.041158683598042,0.049198489636183,-0.144532367587090,-0.107443325221539,0.010518573224545,0.308985441923141,-0.079949177801609,-0.009890167042613,0.062165040522814,0.323612362146378,-0.117674030363560,0.128977209329605) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.204975932836533,0.042067341506481,0.028309935703874,-0.044456828385592,-0.026077201589942,0.041551783680916,0.030202632769942,0.078500978648663,0.064503267407417,-0.044242028146982,0.006979099009186,0.077489413321018,0.047251552343369,-0.123916432261467,-0.017952982336283,-0.014810457825661) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.072535865008831,0.007671377621591,-0.155287176370621,0.035307995975018,-0.068502165377140,0.006348876282573,0.074156776070595,-0.011924296617508,0.044034052640200,0.063860662281513,-0.085100464522839,0.060939442366362,0.011724907904863,-0.087570749223232,0.182240709662437,-0.193232670426369) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.406150788068771,0.027517972514033,0.222758457064629,-0.012750141322613,-0.151477992534637,0.138093352317810,-0.167562022805214,-0.028418352827430,0.188747435808182,0.072722315788269,-0.062346156686544,-0.060476712882519,0.124713703989983,0.387973457574844,-0.101840578019619,-0.008758719079196) * MODEL2_texOff(vec2(0,0));
res += mat4(0.288556098937988,-0.028004700317979,-0.176547333598137,0.051219638437033,-0.024533854797482,-0.043310649693012,-0.183414429426193,0.027153160423040,0.230781570076942,-0.180023506283760,-0.060058660805225,0.259602904319763,-0.120140321552753,-0.262860685586929,0.013016405515373,-0.035301253199577) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.002823171671480,0.003742445260286,0.066685043275356,0.006958906073123,0.068960472941399,0.024543175473809,0.043264683336020,-0.007492010947317,0.024337269365788,0.041863039135933,0.031068731099367,-0.077677883207798,0.010232270695269,0.022114092484117,-0.087793812155724,-0.014520508237183) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.125003337860107,-0.175670877099037,-0.024729941040277,0.083446115255356,0.050690352916718,0.032923799008131,-0.006095089484006,-0.086695581674576,-0.016741652041674,-0.230031698942184,-0.121624909341335,0.253390789031982,0.007342209108174,0.015508146025240,-0.092355087399483,0.026305053383112) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.169935494661331,-0.061899434775114,-0.012729420326650,0.076692581176758,0.007823528721929,-0.068017788231373,-0.061659343540668,0.061384212225676,-0.074311651289463,-0.126828223466873,0.033549748361111,0.069520078599453,-0.000565351627301,-0.066745400428772,0.024525254964828,-0.014728602021933) * MODEL2_texOff(vec2(1,1));
res += mat4(0.128997579216957,0.008335827849805,-0.019797606393695,-0.095357269048691,-0.032311625778675,0.025794161483645,-0.096932053565979,-0.056537125259638,0.022740380838513,0.006364395841956,0.049794975668192,0.021484928205609,0.055487621575594,-0.030913783237338,0.047980103641748,-0.016341429203749) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.105856098234653,-0.081591896712780,0.028748838230968,-0.078195795416832,-0.097651176154613,-0.225914940237999,0.155997708439827,-0.057344552129507,-0.052382774651051,0.046545743942261,0.040634371340275,0.002252288861200,0.084710702300072,-0.081940896809101,-0.042283613234758,-0.101411946117878) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.126720786094666,0.068498909473419,-0.102239541709423,0.137793719768524,-0.049251649528742,0.100660480558872,-0.181662514805794,0.220383971929550,-0.140120074152946,0.086081139743328,-0.015603676438332,0.097599484026432,-0.013147423975170,0.066630274057388,-0.072045668959618,-0.158108532428741) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.128001019358635,0.005804827902466,0.013910144567490,-0.018005235120654,0.017137572169304,0.039198931306601,-0.232937172055244,0.127597987651825,0.023405723273754,-0.020778238773346,0.137684658169746,-0.157899767160416,0.030342325568199,-0.058916568756104,0.016842138022184,-0.140393719077110) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.150258228182793,-0.057889394462109,-0.041685141623020,-0.029840718954802,-0.104471035301685,-0.235954254865646,-0.043269891291857,-0.045171599835157,-0.204296663403511,0.196861594915390,-0.206850871443748,0.072608798742294,-0.082633405923843,0.097718954086304,0.079814337193966,-0.106478661298752) * MODEL3_texOff(vec2(0,0));
res += mat4(0.283746451139450,0.068468205630779,0.070701807737350,-0.154192104935646,-0.110436506569386,0.141513377428055,-0.154246628284454,0.078439295291901,0.274216175079346,-0.062791772186756,-0.032242093235254,-0.080746255815029,0.102333478629589,0.100633449852467,0.077323608100414,-0.305945426225662) * MODEL3_texOff(vec2(0,1));
res += mat4(0.078061982989311,-0.003644824493676,-0.008769130334258,0.038334827870131,-0.063833512365818,-0.055907450616360,-0.243304684758186,0.122383579611778,-0.032498449087143,-0.001088172197342,-0.170682087540627,0.018182234838605,-0.002697892487049,0.019088141620159,0.000264855945716,0.031509183347225) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.045872576534748,0.080384314060211,-0.043296370655298,0.011669411323965,0.049068093299866,0.041687477380037,0.094783872365952,-0.097897522151470,0.052588347345591,0.103480808436871,0.052216239273548,-0.002418439136818,0.112271331250668,0.222417697310448,0.113933950662613,-0.176438376307487) * MODEL3_texOff(vec2(1,0));
res += mat4(0.146042540669441,0.023194117471576,-0.031768452376127,0.077706575393677,-0.018259154632688,0.062038950622082,-0.126751631498337,0.091331399977207,-0.067609474062920,-0.133581429719925,0.255554437637329,-0.134434938430786,-0.027218343690038,0.009144012816250,0.074018232524395,-0.076296232640743) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.044220697134733,-0.015827313065529,-0.078983381390572,-0.086282216012478,-0.109324470162392,0.013600473292172,-0.011955237016082,0.016432425007224,0.148323416709900,-0.035764053463936,-0.125705495476723,0.086565144360065,0.121009461581707,-0.024252630770206,0.073481202125549,-0.041194315999746) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.137591421604156,-0.212833836674690,0.035018358379602,-0.001316086039878,-0.054861668497324,-0.055526327341795,-0.094444118440151,-0.052918843924999,-0.019843308255076,-0.015878539532423,0.082815200090408,-0.201270654797554,0.070079624652863,-0.261586844921112,-0.055419441312551,0.238661259412766) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.074220255017281,-0.031121209263802,0.073201015591621,-0.007374541368335,-0.032453283667564,0.011959822848439,-0.031630501151085,-0.060242217034101,-0.049473829567432,0.028221078217030,0.051063220947981,-0.015639781951904,0.043498013168573,-0.075038067996502,0.101966843008995,-0.186190366744995) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.056993864476681,0.091843813657761,0.004051878582686,0.065627537667751,-0.018083525821567,0.083134114742279,-0.001293099252507,0.117994047701359,-0.117005541920662,-0.110637351870537,-0.187160089612007,0.097750164568424,-0.014329021796584,-0.010024215094745,0.064309798181057,0.053850773721933) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.001644422416575,-0.032776743173599,-0.123963668942451,-0.154129683971405,0.282642006874084,0.087901450693607,0.162889853119850,-0.164536297321320,0.112167030572891,-0.029926383867860,-0.131584316492081,-0.192395910620689,-0.226962506771088,-0.300857484340668,-0.076894111931324,0.029379989951849) * MODEL4_texOff(vec2(0,0));
res += mat4(0.055586524307728,0.033892791718245,0.016927996650338,-0.066598363220692,0.051563236862421,0.136577472090721,-0.089308328926563,0.302455276250839,-0.023114664480090,0.060090363025665,-0.042814537882805,-0.000077507087553,-0.242735013365746,0.029117137193680,-0.101040616631508,0.046440672129393) * MODEL4_texOff(vec2(0,1));
res += mat4(0.178363800048828,0.071952156722546,0.090040698647499,-0.149435460567474,-0.058278143405914,0.010637991130352,0.039211764931679,0.085966221988201,-0.095801502466202,-0.076073318719864,0.013263043016195,0.131481245160103,0.010437610559165,0.002901210216805,-0.045910425484180,-0.019703581929207) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.147850394248962,0.168086066842079,-0.185885176062584,-0.083653055131435,-0.056962907314301,-0.179402500391006,-0.090562239289284,-0.100816361606121,-0.002720267977566,-0.045599732547998,0.149593025445938,0.009646558202803,0.165672957897186,0.168688774108887,0.082076109945774,-0.126492083072662) * MODEL4_texOff(vec2(1,0));
res += mat4(0.112214632332325,0.047296397387981,0.054624591022730,0.059595312923193,-0.127789855003357,-0.143402829766273,-0.076158002018929,-0.129638060927391,-0.082122445106506,0.038117442280054,-0.130946606397629,0.041946556419134,0.076857842504978,0.128991246223450,-0.011559816077352,0.023245947435498) * MODEL4_texOff(vec2(1,1));
res += mat4(0.000539601198398,0.021960327401757,-0.062752611935139,-0.018677335232496,0.111566074192524,-0.050027716904879,0.140356943011284,0.003274383954704,-0.084050387144089,0.006289845798165,0.184073761105537,-0.010047242976725,-0.030458088964224,-0.018883394077420,0.029964068904519,0.088011503219604) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.029761465266347,0.103283748030663,-0.001934425556101,0.062861986458302,0.153921678662300,-0.113263010978699,-0.247468814253807,0.195151254534721,0.035105325281620,0.013377122581005,-0.072486072778702,0.117671094834805,0.172136604785919,0.023360528051853,-0.142184898257256,-0.025229683145881) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.025367291644216,-0.032959096133709,0.036038007587194,0.021656412631273,0.167132109403610,-0.001633840147406,0.101009719073772,0.021647009998560,0.004247394390404,-0.008029242977500,-0.027604330331087,0.008757816627622,0.090019308030605,-0.024586975574493,-0.039231091737747,-0.112204819917679) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.182790860533714,-0.000715389789548,0.020366933196783,-0.038646880537271,-0.090356931090355,-0.044226754456758,-0.119715653359890,0.118007093667984,-0.015202135778964,0.058387972414494,0.095084294676781,-0.144553318619728,-0.007473480887711,-0.047532409429550,-0.237598016858101,0.065393134951591) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.582105278968811,0.091354444622993,-0.374355167150497,-0.013139323331416,0.008593446575105,-0.047970764338970,0.211653485894203,-0.069980166852474,-0.134867191314697,0.095238082110882,-0.043168485164642,0.162769198417664,0.021496836096048,-0.022139534354210,-0.648431599140167,-0.066612914204597) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.122683122754097,-0.084250696003437,-0.118178322911263,-0.023103982210159,-0.002714345930144,0.020938849076629,0.006263294257224,0.028241364285350,-0.000278495484963,-0.078711152076721,0.149877473711967,-0.163002654910088,0.088629141449928,-0.034780845046043,0.094986528158188,-0.276561677455902) * MODEL5_texOff(vec2(0,1));
res += mat4(0.017132936045527,-0.021876208484173,-0.011027429252863,0.007028660736978,0.019941760227084,0.008049636147916,0.023939326405525,0.008122335188091,0.007100918330252,0.034416269510984,0.177770361304283,-0.023976540192962,-0.020317224785686,-0.052993152290583,-0.001169518800452,0.035068135708570) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.108890049159527,-0.039497729390860,-0.027506439015269,0.065620511770248,0.116403266787529,0.084710918366909,0.071005322039127,-0.099566757678986,0.134854957461357,0.069535382091999,0.088684163987637,0.007111872546375,-0.050337951630354,-0.077932588756084,-0.049619406461716,0.095326371490955) * MODEL5_texOff(vec2(1,0));
res += mat4(0.002262189751491,-0.002595457481220,-0.017764478921890,0.020929239690304,-0.026968404650688,0.011995286680758,0.017103832215071,0.007129548583180,-0.016958471387625,-0.055576138198376,0.102527804672718,-0.037908628582954,0.033352360129356,0.012061626650393,0.127676829695702,0.016815431416035) * MODEL5_texOff(vec2(1,1));
res += mat4(0.253024548292160,-0.029916020110250,-0.085062652826309,-0.071002215147018,0.032872669398785,-0.025150857865810,-0.170383110642433,0.007757418323308,-0.006742199882865,-0.014144835062325,0.016486726701260,0.038191836327314,-0.100375443696976,-0.038859959691763,-0.016655690968037,0.048854544758797) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.116602145135403,-0.127907469868660,0.185306295752525,-0.137351244688034,0.016308462247252,-0.081519521772861,0.214155033230782,0.102288790047169,0.048478659242392,-0.045728478580713,-0.094196535646915,-0.076574884355068,-0.163706928491592,0.196526274085045,0.143661662936211,-0.062451269477606) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.072168409824371,0.001808794913813,0.071489639580250,-0.085700541734695,-0.040132597088814,0.004407101776451,0.188898056745529,0.061314318329096,-0.015623474493623,-0.033540721982718,-0.132735982537270,0.028003675863147,0.027328604832292,-0.102199845016003,-0.015408044680953,-0.029908662661910) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.007331487722695,-0.012751681730151,0.006935656536371,0.042599216103554,-0.020393610000610,-0.023729464039207,-0.140055671334267,0.097992800176144,-0.149776309728622,0.032253030687571,0.005298480391502,0.008988218382001,-0.064213253557682,-0.080573923885822,0.024043535813689,-0.073396407067776) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.054555904120207,-0.053773358464241,0.290659457445145,-0.115571036934853,-0.012919900938869,-0.129978552460670,0.265037357807159,-0.116700321435928,-0.357748329639435,-0.029351085424423,-0.159214764833450,0.132764920592308,-0.039140481501818,0.198851898312569,0.196598082780838,0.260487616062164) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.067819878458977,0.060326240956783,-0.047395844012499,-0.001535106217489,-0.109936013817787,0.047110952436924,0.104938223958015,0.023369405418634,-0.295491248369217,-0.024981232360005,-0.057963561266661,-0.081365801393986,-0.111741676926613,-0.190639361739159,0.030712427571416,-0.141766160726547) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.071979925036430,0.032235424965620,-0.001457387465052,0.082815073430538,0.003533088602126,-0.046065043658018,-0.024655731394887,0.020516365766525,0.042043190449476,0.056291006505489,0.149702295660973,-0.099185541272163,0.046265743672848,0.052945956587791,0.042368475347757,-0.129090547561646) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.024234591051936,0.048003911972046,0.007804153952748,-0.066843003034592,0.049427192658186,0.018476057797670,0.184883117675781,0.117357790470123,0.042064487934113,-0.041668768972158,-0.169331997632980,0.054522179067135,-0.005587005056441,-0.098360061645508,0.100174590945244,0.137518063187599) * MODEL6_texOff(vec2(1,0));
res += mat4(0.002481501316652,-0.013369867578149,0.031919818371534,-0.049366597086191,-0.038513980805874,0.059996232390404,0.116463452577591,0.079216763377190,0.084665715694427,0.013716835528612,0.047121442854404,0.013685284182429,-0.077899634838104,-0.044098477810621,-0.100810304284096,0.058313954621553) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.284953445196152,0.960657954216003,-0.119662545621395,0.655988812446594) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.124027498066425,-0.181398719549179,-0.028937218710780,-0.058063071221113);
res += mat4(-0.110258638858795,-0.010290511883795,-0.001403934904374,0.032705239951611,-0.059858124703169,0.076439812779427,-0.091817401349545,-0.074520878493786,-0.002463866490871,0.072512380778790,-0.040727972984314,0.072118788957596,0.073132477700710,0.013617684133351,0.053982689976692,-0.018277838826180) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.075695537030697,-0.040372673422098,-0.141766130924225,-0.011236498132348,0.021334655582905,-0.009658221155405,0.007439598441124,-0.013285770080984,0.051579691469669,-0.000718968803994,0.060909688472748,-0.091377422213554,-0.094664528965950,0.001885808422230,0.010561048984528,0.061664648354053) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.093584991991520,0.011420399881899,-0.140885815024376,-0.016122320666909,-0.029439205303788,-0.006798307877034,0.100499503314495,-0.000124818063341,0.094888001680374,-0.018221598118544,0.070018343627453,-0.019362799823284,-0.067995689809322,-0.058366779237986,0.084298223257065,-0.005875592119992) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.359019160270691,0.132305100560188,-0.158215016126633,0.036424975842237,0.021010952070355,0.048335399478674,0.098023124039173,0.058128785341978,-0.208231225609779,0.199374794960022,-0.072026640176773,-0.013948037289083,0.125140026211739,0.177038773894310,-0.017767781391740,-0.007875035516918) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.430298596620560,-0.405865728855133,-0.090440914034843,-0.143938779830933,-0.142334550619125,-0.079116493463516,-0.062662973999977,-0.001776510383934,0.060438912361860,-0.291852146387100,0.178478688001633,0.205604821443558,-0.142927527427673,-0.333363950252533,0.278726249933243,0.318167895078659) * MODEL1_texOff(vec2(0,0));
res += mat4(0.040504835546017,-0.135309904813766,-0.097778499126434,0.041043173521757,0.083380460739136,0.077707506716251,0.028589274734259,-0.018842959776521,0.079843521118164,0.154176786541939,-0.065096683800220,-0.078725561499596,0.079097718000412,-0.028538590297103,0.274835377931595,0.106114760041237) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.073231823742390,-0.099333710968494,0.086710721254349,0.087787054479122,0.241260588169098,0.144469663500786,0.171688750386238,0.147451475262642,-0.070262998342514,-0.015159124508500,-0.054370034486055,-0.031483221799135,0.017508465796709,-0.098662957549095,0.005896039307117,-0.000041352181142) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.026026820763946,-0.172898888587952,-0.028859803453088,0.080994397401810,-0.112638942897320,-0.074272014200687,0.207050785422325,0.008012472651899,0.080711610615253,-0.049918893724680,-0.070743568241596,-0.066216468811035,0.016047099605203,0.046975400298834,-0.124623529613018,-0.282893419265747) * MODEL1_texOff(vec2(1,0));
res += mat4(0.201429277658463,0.133361503481865,0.014964563772082,0.025590339675546,-0.002072161063552,0.023815162479877,-0.004461250733584,0.021586652845144,-0.031694751232862,0.024205090478063,-0.028291311115026,-0.026111245155334,0.016067199409008,0.026549961417913,-0.024790622293949,-0.081562444567680) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.060912333428860,-0.065371021628380,0.117981277406216,0.121832981705666,0.019898803904653,-0.055944979190826,-0.095416463911533,-0.105819366872311,0.066097237169743,-0.000703767873347,0.125663027167320,0.092233113944530,-0.069091647863388,-0.069863103330135,0.044814202934504,-0.029276212677360) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.077530764043331,-0.029716432094574,0.180259943008423,-0.052760336548090,-0.301896095275879,0.017178548499942,0.067077569663525,0.015958903357387,-0.166374832391739,-0.007729383185506,0.096286602318287,-0.123809672892094,0.094162270426750,0.050453804433346,-0.011088319122791,-0.076088093221188) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.184683620929718,0.035702403634787,0.098005667328835,-0.009560677222908,0.190159276127815,-0.012859856709838,-0.277044743299484,-0.104394160211086,0.034399632364511,-0.060638003051281,0.072515167295933,0.049226805567741,-0.058685015887022,-0.021003043279052,-0.025764921680093,-0.074802681803703) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.124449737370014,-0.000475555396406,-0.054181851446629,0.004250131547451,-0.072376817464828,0.079396285116673,0.000672693131492,-0.115893535315990,0.066582597792149,-0.056559208780527,0.000210230020457,0.129187554121017,-0.205796077847481,0.184000909328461,-0.129872828722000,-0.106892473995686) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.158064261078835,-0.038689143955708,-0.126471593976021,-0.174042239785194,-0.239502072334290,-0.338536530733109,0.006822191178799,0.089572131633759,-0.176215961575508,-0.165788367390633,-0.013504822738469,0.294154793024063,0.141173243522644,0.176328703761101,-0.152697190642357,-0.290496021509171) * MODEL2_texOff(vec2(0,0));
res += mat4(0.176273971796036,0.072135083377361,-0.141317799687386,0.001366367912851,0.096114672720432,0.194908440113068,-0.002726214705035,0.002306007547304,0.135132476687431,0.023377677425742,-0.012888971716166,0.139557033777237,-0.079263985157013,-0.139314144849777,-0.046040646731853,-0.024819936603308) * MODEL2_texOff(vec2(0,1));
res += mat4(0.045586656779051,0.018282575532794,-0.021829495206475,-0.011353631503880,-0.213709458708763,-0.037171047180891,0.019094711169600,-0.031709212809801,-0.099051609635353,0.039575889706612,-0.072318010032177,-0.087380215525627,-0.087490856647491,-0.081068404018879,0.006876300089061,-0.024370586499572) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.007093977183104,-0.022502252832055,0.098575539886951,0.097692847251892,0.036277260631323,-0.022305585443974,-0.046697296202183,0.051946230232716,-0.022423423826694,-0.009043542668223,0.081690810620785,0.302745193243027,-0.050542831420898,-0.020890813320875,-0.032600063830614,0.023129075765610) * MODEL2_texOff(vec2(1,0));
res += mat4(0.140834182500839,0.008291078731418,0.079704940319061,-0.097297951579094,-0.054466024041176,0.048659794032574,0.047517623752356,-0.041748903691769,0.039234150201082,-0.020073141902685,0.128962814807892,0.135632291436195,0.046211395412683,0.048199076205492,-0.083728209137917,-0.035202257335186) * MODEL2_texOff(vec2(1,1));
res += mat4(0.012423271313310,0.060153834521770,0.025648832321167,0.082418501377106,0.002619369421154,0.092504933476448,-0.037841975688934,-0.107659526169300,-0.196500837802887,-0.041243299841881,-0.041137360036373,-0.038340490311384,-0.143224090337753,0.028528783470392,-0.009058729745448,-0.009386585094035) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.210699766874313,-0.052402064204216,0.104629337787628,0.195001423358917,-0.067795738577843,0.117989383637905,-0.028959402814507,-0.019307857379317,0.007049194071442,-0.093549951910973,-0.088524207472801,0.079866543412209,0.052736278623343,-0.135209515690804,-0.055787436664104,0.125746622681618) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.016826886683702,-0.115937300026417,0.024389490485191,0.060607869178057,0.215147927403450,0.015627874061465,-0.035536725074053,-0.041263114660978,-0.059911634773016,0.023300882428885,-0.066460795700550,-0.136457458138466,-0.066697008907795,-0.039441559463739,-0.035457666963339,-0.007409242913127) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.037546388804913,0.009612686000764,0.110687866806984,0.059106141328812,0.097471401095390,-0.070250779390335,0.065359890460968,-0.006421074271202,-0.232209265232086,0.033381804823875,-0.126649394631386,-0.081076003611088,-0.169140934944153,0.079063005745411,-0.120116405189037,0.033462237566710) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.109129391610622,-0.057037875056267,0.193187564611435,0.064886577427387,-0.026591654866934,0.285989046096802,0.045829337090254,0.029420608654618,0.157390192151070,-0.043849986046553,0.195327982306480,-0.032337617129087,0.014817744493484,-0.029970422387123,-0.080330222845078,0.079402789473534) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.160333022475243,0.099047899246216,0.153572469949722,-0.040325738489628,0.120337612926960,0.209576472640038,-0.048841379582882,-0.087884537875652,0.153227120637894,0.018084019422531,0.032184328883886,0.150174006819725,-0.135643303394318,-0.118220955133438,0.062410257756710,0.030125623568892) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.116041459143162,-0.006567322649062,-0.091436922550201,0.036851085722446,0.176944598555565,0.040161639451981,0.025562396273017,-0.079565316438675,0.017247524112463,-0.068954005837440,0.046216879040003,0.031260788440704,0.084684908390045,-0.035030849277973,0.135160863399506,0.060829900205135) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.045486208051443,0.074308380484581,-0.089203268289566,-0.224138364195824,-0.211132586002350,0.084045529365540,-0.029231967404485,-0.191319614648819,0.186878800392151,0.123266845941544,-0.163324192166328,-0.024431221187115,-0.018347043544054,-0.005968160461634,-0.061506856232882,0.006836214102805) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.101338349282742,-0.052357740700245,-0.078382186591625,-0.037286330014467,0.094433017075062,0.107364840805531,-0.006368629168719,0.038205463439226,-0.142426192760468,0.012110242620111,-0.033546410501003,0.022610323503613,-0.172959864139557,-0.079930573701859,-0.064172782003880,0.025436699390411) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.060206528753042,0.004476305097342,-0.038982532918453,-0.078435547649860,-0.081771172583103,-0.006451029330492,0.035413432866335,-0.047274224460125,0.329808533191681,0.002289871219546,0.155871748924255,-0.033027432858944,-0.062810949981213,0.027055248618126,-0.040475420653820,0.069099426269531) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.037241779267788,-0.090546555817127,-0.079707935452461,0.078823342919350,-0.025408141314983,-0.017747122794390,0.090527601540089,-0.050569768995047,-0.063306212425232,-0.002493552165106,0.151712596416473,0.002307354705408,0.075897291302681,-0.135807603597641,0.010807354003191,0.124671496450901) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.117146760225296,0.042556364089251,-0.082746408879757,0.058836299926043,-0.104823544621468,-0.086589239537716,-0.016661997884512,-0.040362577885389,0.099613621830940,0.036548100411892,0.039139766246080,-0.011295776814222,-0.106443971395493,0.063411533832550,0.123893097043037,0.076134152710438) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.080290876328945,-0.027295382693410,0.159046217799187,-0.125935211777687,-0.091361068189144,0.038490775972605,-0.084550119936466,0.076119586825371,0.166218951344490,0.016025150194764,0.100050829350948,-0.136442959308624,0.040111973881721,-0.083503179252148,0.068230286240578,-0.145083591341972) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.088525533676147,0.057499092072248,0.026634279638529,-0.109054259955883,0.064349353313446,0.053115889430046,0.283183962106705,0.100332446396351,-0.125457167625427,-0.219996184110641,0.060014516115189,-0.064536094665527,-0.132613822817802,-0.043656572699547,0.052529096603394,0.030438864603639) * MODEL4_texOff(vec2(0,0));
res += mat4(0.089477777481079,-0.007176419720054,0.013483201153576,-0.083466999232769,-0.054398033767939,-0.120465926826000,0.090805880725384,0.010757303796709,-0.078315913677216,0.007197476457804,0.047506220638752,-0.049507468938828,0.075347051024437,0.027036730200052,-0.112412065267563,-0.235753536224365) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.004449882078916,-0.000174334069015,-0.167023107409477,-0.181396439671516,-0.125802129507065,-0.122242391109467,-0.047924652695656,-0.007693492341787,0.229759708046913,0.093219682574272,0.171402350068092,0.096922323107719,0.020550888031721,0.058758638799191,-0.059936325997114,-0.056715793907642) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.036277364939451,-0.077854327857494,-0.262014687061310,-0.237262815237045,0.161443024873734,0.092390000820160,-0.025331037119031,0.065658979117870,-0.171707093715668,0.007899562828243,0.125151723623276,0.053809881210327,-0.155133858323097,-0.121859461069107,-0.099260911345482,-0.135809332132339) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.139067694544792,-0.126202270388603,-0.049536768347025,-0.128562659025192,-0.075487844645977,-0.070781759917736,0.055961124598980,0.081395491957664,0.129045888781548,0.158079698681831,0.096192166209221,0.049367383122444,0.107205569744110,0.065051443874836,-0.111534625291824,-0.163889303803444) * MODEL4_texOff(vec2(1,1));
res += mat4(0.090065062046051,-0.021373847499490,0.026346771046519,-0.005836088210344,-0.171346947550774,0.001582633005455,0.132517620921135,0.111436821520329,0.100288651883602,0.019189216196537,0.059359744191170,-0.137751683592796,-0.023994885385036,0.048984367400408,-0.000195627770154,0.025001758709550) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.070175506174564,0.020986402407289,-0.219015926122665,-0.035687234252691,-0.077828191220760,-0.192764610052109,0.226964861154556,0.161001861095428,0.169561430811882,0.012853165157139,0.094722934067249,-0.036883261054754,0.059591274708509,0.012056720443070,-0.021435424685478,0.096516981720924) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.012819856405258,-0.011024542152882,-0.047417998313904,-0.003535114927217,0.003891744883731,-0.070002809166908,0.099010430276394,0.030734026804566,-0.118306674063206,-0.013080722652376,0.047888740897179,0.050607684999704,0.005590185523033,0.101224705576897,-0.036330688744783,0.063276149332523) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.249987870454788,-0.230419561266899,0.052688695490360,0.058857019990683,0.154925808310509,0.053330145776272,0.176934763789177,0.004075859207660,0.179264470934868,0.094059906899929,-0.230547323822975,0.063927233219147,-0.003696555970237,0.081056676805019,0.064993582665920,0.011320719495416) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.375917047262192,-0.162840515375137,-0.068722084164619,-0.090809673070908,-0.205474540591240,-0.045736141502857,0.150639235973358,-0.055253729224205,0.072759814560413,-0.000219629771891,0.195981264114380,-0.099026627838612,-0.272639721632004,-0.003871164750308,-0.077012114226818,-0.015410446561873) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.034850757569075,0.093685351312160,0.046480666846037,0.024751024320722,0.210537925362587,-0.040395334362984,0.072251446545124,-0.102311640977859,-0.052755169570446,-0.051740072667599,0.067282155156136,0.031144665554166,-0.380546301603317,0.027561495080590,-0.103749722242355,-0.017084546387196) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.022444928064942,-0.105956189334393,0.006873019970953,-0.024917054921389,0.170311331748962,-0.034705560654402,-0.021085191518068,-0.050745718181133,0.065412908792496,0.045045245438814,-0.020727721974254,-0.127913951873779,0.010900703258812,0.044321861118078,-0.023376924917102,0.029771309345961) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.014380667358637,-0.021656943485141,-0.050900787115097,0.017523385584354,-0.108904287219048,-0.065917991101742,-0.031323239207268,-0.045324623584747,0.138128519058228,0.138859480619431,-0.035160679370165,-0.038240663707256,0.121159605681896,0.140471205115318,0.080902442336082,0.075857758522034) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.102598018944263,-0.028158156201243,-0.072761602699757,0.003962561488152,0.044013164937496,0.035360373556614,-0.056446313858032,-0.046007193624973,-0.168464124202728,-0.167973548173904,-0.039762984961271,-0.008109156042337,-0.066268771886826,-0.077627018094063,0.015664922073483,-0.003739031264558) * MODEL5_texOff(vec2(1,1));
res += mat4(0.235137522220612,-0.008353640325367,0.058539729565382,0.128878369927406,0.061033286154270,-0.145434230566025,0.041185338050127,-0.030929706990719,0.149782687425613,0.001791883842088,0.066990971565247,0.085132054984570,-0.039841212332249,-0.054546769708395,-0.122151307761669,-0.001758202444762) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.110335320234299,0.261353224515915,0.149386271834373,0.093066670000553,-0.045898217707872,0.123985141515732,-0.052047137171030,-0.002874585799873,-0.263445675373077,-0.083483926951885,-0.052044793963432,0.072465300559998,0.052435629069805,0.018487274646759,0.052901476621628,0.038540456444025) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.058953084051609,0.031442698091269,-0.008599607273936,-0.008661217056215,0.174373060464859,0.072896376252174,0.076136000454426,0.006098551675677,0.092111364006996,0.023694908246398,-0.211557626724243,-0.026081155985594,0.116864331066608,0.049711734056473,0.119590610265732,0.015079833567142) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.148313656449318,0.146977767348289,0.030122237280011,0.048843722790480,0.263520747423172,-0.181819990277290,0.073663569986820,0.005420234985650,-0.031372893601656,0.171613961458206,-0.094117723405361,-0.058628246188164,0.103777594864368,0.122342899441719,0.031001346185803,-0.010122994892299) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.181049734354019,0.111111424863338,-0.005804582033306,0.043901119381189,0.059543352574110,0.254135638475418,-0.097136288881302,0.120021767914295,-0.092319339513779,-0.252552360296249,0.003485541092232,-0.059182658791542,0.026871239766479,0.061886467039585,-0.093944333493710,-0.159775912761688) * MODEL6_texOff(vec2(0,0));
res += mat4(0.083200059831142,0.053441159427166,-0.130494758486748,-0.059717308729887,0.126817002892494,0.008030423894525,0.037869688123465,-0.164178058505058,-0.056250620633364,0.071930155158043,-0.108833365142345,-0.022433459758759,0.066439688205719,0.049659557640553,-0.249487116932869,0.041091572493315) * MODEL6_texOff(vec2(0,1));
res += mat4(0.104268580675125,0.079425938427448,0.078120961785316,-0.055787887424231,0.137367933988571,-0.071462206542492,0.050011578947306,0.040989879518747,-0.172625526785851,0.104053117334843,0.040537409484386,0.069744355976582,-0.077947407960892,-0.070049457252026,-0.100742392241955,0.000376391049940) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.007065889891237,0.005724032409489,0.031978409737349,0.031111845746636,0.069990135729313,0.142327770590782,0.000541447079740,0.024495761841536,0.175888463854790,0.098575524985790,-0.001397229265422,0.044684570282698,0.005719434004277,0.019857043400407,-0.036576543003321,0.040998708456755) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.015102461911738,0.002749721053988,0.030981803312898,0.051164932549000,0.255081713199615,0.157103404402733,0.002648867201060,0.096033960580826,-0.113373972475529,0.038540270179510,-0.001179235987365,0.047270465642214,0.157622247934341,-0.043992366641760,0.040110703557730,-0.025669204071164) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.142630517482758,-0.105672597885132,-0.113560318946838,-0.224478691816330) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_2x_LineArt] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.158574774861336,-0.041439309716225,-0.101270787417889,-0.106449432671070);
res += mat4(-0.051072839647532,0.027423631399870,-0.044411659240723,-0.028352422639728,-0.019782984629273,-0.167751997709274,-0.015836147591472,-0.068514101207256,0.004114334005862,0.025262994691730,0.079125709831715,-0.091460734605789,-0.023353811353445,0.080587327480316,0.085843615233898,0.023523336276412) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.032256655395031,-0.146921142935753,-0.158385798335075,0.059300269931555,-0.102584749460220,-0.023879045620561,-0.005690975114703,0.052400846034288,0.162311509251595,-0.177858278155327,0.146347120404243,0.044241793453693,0.011882923543453,0.038247026503086,-0.011090471409261,-0.025231899693608) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.053155872970819,0.034528192132711,-0.073471322655678,0.033682368695736,0.071440115571022,0.055857967585325,-0.001551207387820,-0.052118659019470,-0.007415225729346,0.031234420835972,0.011096078902483,0.127008020877838,0.008986440487206,0.057625785470009,0.137004539370537,0.001636213273741) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.269668430089951,-0.027302501723170,0.025224039331079,0.004098767880350,0.038745231926441,0.038727983832359,0.134415328502655,-0.024240527302027,-0.145423680543900,-0.052407696843147,-0.017329191789031,0.085145473480225,-0.090556740760803,0.117746233940125,-0.011798829771578,0.075514040887356) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.263373881578445,-0.378091841936111,-0.116424404084682,-0.093891635537148,-0.070424690842628,0.011962727643549,-0.017999334260821,0.089594364166260,0.380548655986786,0.163813501596451,-0.248430311679840,0.042425841093063,0.151154249906540,0.173005551099777,-0.288949966430664,-0.101959712803364) * MODEL1_texOff(vec2(0,0));
res += mat4(0.158198386430740,-0.063815250992775,-0.098404608666897,-0.014198867604136,-0.053660660982132,0.079511635005474,0.018076298758388,0.004048997536302,-0.132669880986214,0.011962315067649,0.061201032251120,-0.096184134483337,-0.021756697446108,0.191810637712479,0.029927935451269,-0.247609555721283) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.032923396676779,-0.023914465680718,-0.046246714890003,0.025261178612709,0.127602100372314,-0.268957406282425,-0.141168579459190,0.074776582419872,-0.073926649987698,-0.033589366823435,-0.009629773907363,-0.075015015900135,0.034407194703817,-0.021615309640765,-0.037823885679245,-0.027823191136122) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.190052911639214,0.052224595099688,0.113859847187996,-0.051840912550688,-0.010997950099409,0.032212343066931,-0.021418794989586,-0.073784835636616,0.136312514543533,0.058264140039682,0.021134726703167,-0.043025009334087,-0.023170052096248,0.058313429355621,0.162400379776955,-0.056690763682127) * MODEL1_texOff(vec2(1,0));
res += mat4(0.143411055207253,0.020524706691504,0.132013127207756,-0.250807374715805,-0.022559585049748,-0.027742775157094,0.009786831215024,-0.048170663416386,-0.100245974957943,-0.034853328019381,-0.005052358377725,-0.031559463590384,-0.002635831478983,-0.017017995938659,-0.062561698257923,0.207593128085136) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.067373000085354,0.110953569412231,0.008574762381613,0.058844178915024,-0.015761151909828,0.010510107502341,0.077205874025822,0.067808516323566,0.001075423322618,-0.077441222965717,-0.023521661758423,-0.098850406706333,0.009997831657529,-0.044707268476486,0.011575541459024,-0.049659948796034) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.127063408493996,0.178511545062065,0.150265693664551,-0.062085706740618,-0.181536197662354,-0.120434172451496,-0.188479572534561,0.000801466463599,-0.100088529288769,-0.127289131283760,0.244424521923065,0.143444031476974,-0.046216696500778,-0.126003593206406,0.130756661295891,0.090202860534191) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.041593283414841,-0.022932756692171,0.137637063860893,-0.096621796488762,0.192574515938759,-0.140185758471489,-0.141501024365425,0.225051447749138,0.031392421573400,-0.089665867388248,0.035802841186523,0.111937880516052,0.015159575268626,-0.075189150869846,-0.100352466106415,0.074722185730934) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.084240220487118,0.112091481685638,-0.063748806715012,0.067772381007671,-0.165391474962234,-0.183837398886681,-0.173693269491196,0.076763875782490,0.041527070105076,0.111626319587231,0.004733136855066,-0.094875827431679,-0.139997586607933,0.121775776147842,0.022103341296315,0.005770491436124) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.013041966594756,0.115686699748039,0.184117943048477,0.024143373593688,-0.238830432295799,-0.151166707277298,-0.044321320950985,0.055357683449984,0.020171992480755,0.092016138136387,-0.002640450373292,0.045674521476030,-0.117515951395035,-0.134796872735023,-0.125236317515373,-0.014083856716752) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.037991475313902,0.112122349441051,-0.024288633838296,-0.044129151850939,0.119062513113022,0.138931587338448,0.098825514316559,-0.120651178061962,-0.019909953698516,0.132137700915337,0.087914295494556,-0.221844673156738,0.151247963309288,-0.060364853590727,-0.029140891507268,0.123062439262867) * MODEL2_texOff(vec2(0,1));
res += mat4(0.019325468689203,-0.108518034219742,-0.057863160967827,0.105037175118923,-0.122398860752583,0.172165647149086,0.102894559502602,0.081322766840458,-0.055539663881063,-0.024317832663655,0.004294062964618,0.023599568754435,-0.035184539854527,-0.073540762066841,-0.038293812423944,0.078976765275002) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.002381408121437,-0.090594746172428,-0.136028528213501,0.080473855137825,-0.044455412775278,-0.029784584417939,0.023534316569567,-0.166649788618088,0.045538388192654,-0.180558353662491,-0.160892963409424,-0.007253378164023,-0.177079677581787,0.093648351728916,0.024270903319120,0.220759272575378) * MODEL2_texOff(vec2(1,0));
res += mat4(0.050813868641853,-0.209594368934631,-0.128751128911972,0.092196792364120,0.054005626589060,-0.019288524985313,-0.048411160707474,0.054018806666136,0.036254450678825,-0.262079447507858,-0.197186306118965,-0.065266691148281,0.016195423901081,0.026105728000402,0.014103420078754,0.030368108302355) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.033792264759541,0.140736013650894,0.168375357985497,-0.030779605731368,-0.009608744643629,-0.047711752355099,-0.032441508024931,0.065449208021164,-0.066933818161488,-0.006783063523471,-0.041447114199400,-0.063061021268368,-0.012015985324979,-0.018156738951802,-0.006170246284455,-0.069061778485775) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.072402581572533,0.204493597149849,0.249200329184532,-0.081049434840679,-0.056538101285696,0.103208467364311,-0.141774669289589,-0.000608735950664,0.018167521804571,-0.144568324089050,-0.138957992196083,-0.014169679023325,-0.041448410600424,-0.017137687653303,-0.048241872340441,-0.172127991914749) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.026639400050044,0.047887947410345,0.207836270332336,-0.002894985023886,-0.019147401675582,0.035935707390308,-0.022018445655704,0.023826168850064,0.022142065688968,-0.140314191579819,-0.003064549993724,0.044576566666365,0.020735999569297,-0.067311942577362,0.078408211469650,-0.117047674953938) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.058020699769258,0.118557177484035,0.103690221905708,-0.095910206437111,0.226192146539688,-0.009759764187038,0.065125882625580,-0.015103394165635,-0.119400590658188,-0.031273737549782,-0.020089058205485,0.030650032684207,-0.006277235690504,-0.157965093851089,-0.113450504839420,0.070610180497169) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.047800529748201,0.164943426847458,0.184174954891205,-0.037979304790497,0.073617242276669,-0.121068418025970,-0.061889983713627,0.023337639868259,0.152391046285629,-0.231778338551521,-0.003255285322666,-0.104875043034554,0.073702737689018,-0.021231109276414,-0.126722037792206,0.084141075611115) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.054614949971437,0.372609049081802,0.281517952680588,0.098583124577999,-0.109676711261272,0.064909942448139,0.000155272136908,0.007445954717696,0.034994591027498,0.033353164792061,0.125407636165619,-0.021901730448008,0.117763116955757,-0.090307287871838,-0.035195596516132,-0.049194887280464) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.026045566424727,0.059498593211174,-0.121816225349903,0.053320311009884,0.133635684847832,-0.019937532022595,-0.101635538041592,0.043151207268238,-0.016401201486588,0.013892645016313,-0.048294495791197,0.013370316475630,0.063065417110920,0.041250705718994,0.008214043453336,0.026395466178656) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.046318814158440,0.045199792832136,-0.037696942687035,0.110676422715187,0.003883046098053,-0.002221761969849,0.116946972906590,0.034541651606560,0.190476238727570,0.123547986149788,0.070940844714642,0.026327779516578,0.058840293437243,0.165410444140434,0.239433839917183,-0.355699867010117) * MODEL3_texOff(vec2(1,0));
res += mat4(0.000096610441688,0.153740033507347,0.120789252221584,0.131790205836296,-0.015507929958403,-0.071572169661522,-0.063971839845181,0.055479366332293,0.032700229436159,-0.155442357063293,-0.099271692335606,0.061662167310715,-0.062981329858303,0.092337258160114,0.064162142574787,-0.056517116725445) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.035113364458084,0.037884309887886,0.130130574107170,-0.006612981203943,-0.080036386847496,-0.017745282500982,0.055799186229706,0.004767669364810,0.278618603944778,0.046436883509159,-0.158103957772255,0.027799896895885,0.003334576264024,0.059770043939352,0.148291066288948,-0.020572304725647) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.010855932720006,0.144146606326103,-0.096947595477104,-0.071913130581379,-0.089396730065346,-0.014540944248438,0.031759206205606,0.157991319894791,0.000880105711985,-0.011884566396475,-0.051453076303005,0.037374675273895,0.077555641531944,0.077518291771412,0.158961415290833,0.013925922103226) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.082990594208241,0.210400521755219,-0.063301362097263,-0.185645416378975,0.044167052954435,-0.038649730384350,0.022702345624566,0.071415290236473,-0.003302166471258,0.051636625081301,-0.022614879533648,0.129500463604927,0.054120391607285,0.230745986104012,0.163480609655380,-0.210167497396469) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.073109351098537,-0.090441979467869,0.210221588611603,0.115490302443504,0.001747305388562,-0.059524230659008,0.027291560545564,-0.112647198140621,0.090658552944660,0.085663303732872,0.073382422327995,0.059861321002245,-0.073374934494495,-0.022190650925040,-0.135943427681923,0.142383381724358) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.005471142940223,-0.055974021553993,0.150072008371353,0.157140567898750,-0.135878920555115,0.191238135099411,0.248731359839439,-0.087995223701000,0.005015214439481,-0.142058461904526,0.134090229868889,-0.074593573808670,0.047230832278728,0.010060325264931,-0.140642657876015,0.011104520410299) * MODEL4_texOff(vec2(0,0));
res += mat4(0.025715313851833,-0.048379920423031,0.112028464674950,0.321878343820572,0.014879724942148,0.020272085443139,0.081794053316116,0.027018312364817,0.019780784845352,-0.055168099701405,0.008385470137000,-0.169842258095741,0.030783975496888,-0.012244305573404,-0.106479600071907,0.173382401466370) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.040523871779442,0.380858689546585,0.315271735191345,0.068467020988464,-0.084637373685837,-0.156200855970383,-0.090949088335037,0.001913441345096,0.249062165617943,-0.076197743415833,-0.010159282013774,-0.100061155855656,-0.048630639910698,0.073144800961018,-0.029215306043625,0.071573056280613) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.181671679019928,-0.092905640602112,0.176789671182632,-0.064042106270790,0.017116967588663,0.048089012503624,-0.111758626997471,0.181331947445869,0.132771700620651,0.073008745908737,0.035248000174761,0.010164042003453,-0.036692582070827,0.020184598863125,0.011761092580855,-0.031004685908556) * MODEL4_texOff(vec2(1,0));
res += mat4(0.051226597279310,0.148048415780067,0.023863460868597,0.307031154632568,0.037219304591417,0.053127884864807,-0.017267925664783,-0.060365267097950,-0.036222383379936,0.078959211707115,-0.011694602668285,-0.107846863567829,0.028828965499997,-0.075136907398701,-0.111062116920948,0.012330489233136) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.065503388643265,-0.102879397571087,-0.093574896454811,-0.069882549345493,-0.101030111312866,0.020424414426088,0.267598837614059,0.068677760660648,0.053308036178350,-0.073403224349022,-0.067245744168758,0.003992872312665,0.074587747454643,0.031846601516008,0.024545980617404,-0.024917900562286) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.059559110552073,-0.165189236402512,-0.260136187076569,0.123784169554710,-0.033928312361240,-0.029239920899272,0.153241246938705,0.125854983925819,-0.114790074527264,0.021854968741536,0.062730461359024,-0.032899931073189,0.162914112210274,0.097366355359554,-0.298672378063202,-0.005592684261501) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.061668958514929,-0.044264283031225,0.009030561894178,0.073923185467720,0.058877140283585,0.150566041469574,0.071163617074490,0.085615172982216,-0.074034474790096,0.012701801955700,0.091409407556057,0.008679546415806,0.010774166323245,0.053229477256536,0.027885144576430,-0.027452899143100) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.331463664770126,-0.058454841375351,-0.023432115092874,0.067939817905426,0.081467680633068,0.033015169203281,-0.172741487622261,0.160499408841133,-0.029921183362603,0.072973936796188,0.082688517868519,-0.225855052471161,-0.060664728283882,0.054021988064051,0.119457721710205,-0.066598117351532) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.096966944634914,-0.244972407817841,0.015107323415577,-0.323128849267960,0.015096419490874,-0.050965741276741,-0.142257884144783,0.207132235169411,-0.072706006467342,-0.188465654850006,-0.151230081915855,0.009490092284977,0.248618453741074,-0.014097083359957,0.254354804754257,-0.113697171211243) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.131413474678993,0.024253258481622,-0.052690941840410,-0.089329130947590,0.062032651156187,-0.004636162426323,-0.036861252039671,-0.013892005197704,0.006249496247619,-0.036496911197901,-0.041457504034042,-0.008889635093510,-0.040650263428688,-0.072968162596226,0.119459018111229,0.060837943106890) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.079007156193256,0.044115353375673,-0.011206067167222,-0.033932369202375,-0.012794193811715,0.188707962632179,0.034036226570606,-0.042165931314230,0.052850406616926,-0.035776600241661,-0.067892134189606,0.050523366779089,0.067437186837196,-0.048960663378239,-0.154814377427101,0.077516704797745) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.029740294441581,0.086475171148777,0.112873114645481,-0.301396697759628,-0.003891459433362,0.165643423795700,0.152239963412285,-0.032644409686327,-0.090889304876328,0.151841297745705,0.092738918960094,0.009350982494652,0.051561053842306,-0.011047509498894,-0.131126910448074,0.107545554637909) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.073792465031147,-0.039865341037512,-0.059592511504889,0.100807413458824,0.040013752877712,0.035613454878330,0.016100253909826,-0.001594774541445,-0.127748981118202,0.108591116964817,-0.017734767869115,0.058416035026312,-0.054515540599823,0.039838474243879,-0.038326203823090,0.039419971406460) * MODEL5_texOff(vec2(1,1));
res += mat4(0.183458432555199,0.239903509616852,0.028950534760952,0.055789653211832,0.168494984507561,0.041160505264997,0.011423509567976,0.090808756649494,-0.077886782586575,-0.043838869780302,-0.012006426230073,-0.023544391617179,0.011143227107823,0.060588590800762,0.024820199236274,-0.065537571907043) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.076966963708401,0.113020397722721,-0.065407305955887,-0.073236256837845,0.078186310827732,0.087161011993885,-0.000389597698813,-0.041841536760330,-0.095184631645679,-0.030466794967651,-0.036389905959368,-0.134164541959763,0.073605321347713,-0.152228951454163,-0.044655740261078,-0.020534807816148) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.074639387428761,0.041247818619013,-0.011981536634266,0.091413259506226,0.010967043228447,0.121288746595383,-0.242462724447250,-0.063861832022667,0.007126117125154,-0.041304793208838,-0.051648154854774,-0.083742052316666,0.015555066056550,0.101485803723335,-0.013077893294394,0.020017515867949) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.263353794813156,0.143166661262512,0.045884955674410,0.088182888925076,0.317404150962830,-0.045411929488182,-0.012412405572832,-0.016710514202714,-0.059184141457081,-0.171561434864998,-0.047240365296602,0.000292777578579,0.002533291233703,-0.151342004537582,-0.087523229420185,0.059561025351286) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.153118133544922,-0.253943860530853,-0.059044860303402,0.192054703831673,0.135547474026680,-0.118999212980270,0.043298594653606,0.000155022411491,0.084849417209625,-0.075859628617764,-0.041789554059505,-0.130054697394371,0.179377570748329,0.238180398941040,0.177438959479332,0.016941115260124) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.080330237746239,0.008008825592697,0.031825225800276,0.037194006145000,-0.151336774230003,-0.277556806802750,0.226325243711472,-0.044795922935009,-0.014856295660138,-0.140250593423843,-0.008865910582244,-0.218305855989456,0.056730560958385,-0.075018778443336,-0.021404759958386,-0.077470108866692) * MODEL6_texOff(vec2(0,1));
res += mat4(0.000333102216246,-0.079700335860252,-0.003453240031376,-0.136860892176628,0.148861274123192,0.071095481514931,0.019719894975424,-0.049257408827543,-0.093400731682777,0.086443267762661,0.086711980402470,-0.051885101944208,-0.058719899505377,0.012736005708575,0.073356695473194,-0.047032717615366) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.070944666862488,-0.058650009334087,0.045640517026186,0.051023215055466,0.109008401632309,0.056726377457380,0.033047754317522,0.006443179678172,-0.029221281409264,-0.065862037241459,0.067157648503780,-0.204446062445641,0.054744016379118,-0.211776241660118,-0.164619490504265,0.072507731616497) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.042652539908886,-0.111142665147781,-0.057566385716200,-0.017809761688113,0.026910053566098,0.018089143559337,0.021485714241862,-0.120495043694973,0.049570109695196,0.050894055515528,0.060053493827581,-0.166654542088509,0.046163652092218,-0.039184205234051,-0.044384397566319,-0.025278197601438) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.040116112679243,-0.079722836613655,-0.126389294862747,-0.157729074358940) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_2x_LineArt] sup-pixel convolution 1

vec4 hook()
{
vec4 res = vec4(-0.003011112101376,0.000023812646759,-0.000583161017857,0.002331813797355);
res += mat4(0.002639235695824,-0.003075190354139,0.014431022107601,0.003486059373245,0.018038127571344,-0.012350389733911,0.001119818538427,-0.010106153786182,-0.003860916709527,0.006776534952223,-0.001784504507668,-0.000976150971837,0.019663838669658,0.003209391608834,-0.013495016843081,-0.004171160049736) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.018909318372607,-0.040441457182169,0.012900533154607,0.005351829808205,-0.003080830676481,-0.014552988111973,-0.006976271979511,0.008666963316500,-0.037447575479746,-0.036453686654568,-0.009867641143501,-0.006686275824904,0.012140752747655,0.025295147672296,-0.006223192438483,-0.012430124916136) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.012654433958232,0.019421895965934,-0.008617721498013,0.000447755388450,-0.011001002974808,0.011870585381985,-0.000159508839715,-0.000066010237788,0.006836012471467,-0.000650410249364,0.008393948897719,0.003361830720678,0.004689947701991,0.007994499988854,0.000309055147227,-0.003929646220058) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.025934437289834,-0.008877791464329,0.010147470049560,-0.005292699672282,-0.034665394574404,0.031382665038109,0.006792129948735,0.020320152863860,0.001184589462355,0.009997715242207,0.001089155091904,0.012338608503342,-0.027213919907808,-0.010071885772049,0.003470210358500,0.013242091983557) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.002574501326308,0.014621843583882,-0.002122580073774,-0.046433284878731,0.048251517117023,-0.018520694226027,0.043457008898258,-0.051684085279703,-0.002719550626352,-0.012607415206730,-0.033661901950836,-0.039069890975952,0.013563408516347,-0.007202476728708,-0.014963784255087,-0.030242174863815) * MODEL7_texOff(vec2(0,0));
res += mat4(0.000631812785286,0.001224597217515,-0.008846458978951,0.017263960093260,-0.001501466729678,-0.021994639188051,-0.016006434336305,0.003615336259827,0.007122320123017,0.014280820265412,0.017002463340759,0.018397243693471,-0.005030568223447,-0.001909281709231,-0.004953145515174,0.002232286380604) * MODEL7_texOff(vec2(0,1));
res += mat4(0.000554548925720,-0.001734605990350,0.009846446104348,-0.007498959545046,-0.007841858081520,0.005543407052755,-0.028995262458920,0.017364930361509,-0.000589837378357,0.000293308374239,-0.000452038773801,0.002295898040757,-0.000509414880071,0.001470740884542,0.014825007878244,0.000292641692795) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.009649963118136,-0.014246284030378,0.000984243000858,0.005212487187237,-0.005118332803249,0.007089888211340,0.003618281334639,0.014461081475019,-0.007536076009274,-0.005297833587974,0.020722387358546,0.009119801223278,-0.015996601432562,-0.010194528847933,0.011185741052032,0.028723599389195) * MODEL7_texOff(vec2(1,0));
res += mat4(0.001800956437364,0.001320461276919,0.003757835365832,0.000170005616383,0.006168274674565,-0.002122315112501,0.008768787607551,-0.013953470624983,0.002526725642383,0.000453248998383,0.005120498128235,0.019376905634999,0.004249407909811,-0.002136980649084,0.004697312600911,0.001769650960341) * MODEL7_texOff(vec2(1,1));
res += mat4(0.008446073159575,0.001131666358560,-0.008889224380255,-0.002661053091288,-0.040467664599419,0.020933046936989,-0.002019560663030,0.009116293862462,-0.001429587835446,-0.005418477114290,-0.002145525533706,0.001215382246301,-0.023944577202201,0.001082382979803,0.010520795360208,0.007906782440841) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.017035545781255,-0.002298955339938,0.001637125387788,-0.004655587021261,0.002677475102246,0.010911708697677,-0.000111877256131,0.013627477921546,-0.005307591054589,0.018277306109667,-0.000105197934317,-0.002315082820132,0.034582652151585,-0.011051690205932,-0.034931525588036,-0.017018461599946) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.007572642993182,-0.006029415410012,-0.000700090196915,-0.002507915720344,0.004070402588695,-0.003689401317388,0.000960136472713,0.000414755515521,0.018764875829220,-0.021896054968238,0.002105860970914,-0.007891238667071,0.001341896248050,0.022922936826944,-0.000435016176198,-0.013237917795777) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.000052588107792,-0.025022368878126,0.026233114302158,-0.012432341463864,-0.007797102909535,0.021954437717795,-0.053175650537014,0.030222458764911,0.002852618228644,-0.010574013926089,0.006998401135206,-0.012672736309469,0.006539139430970,0.008182030171156,0.014299657195807,-0.013776636682451) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.009414593689144,0.028579549863935,-0.039983578026295,0.026503995060921,0.007886958308518,0.007737399544567,0.011946727521718,-0.005670174956322,-0.022141704335809,0.016154425218701,-0.026879660785198,0.045667644590139,-0.044443260878325,-0.034957896918058,0.020996630191803,0.052229043096304) * MODEL8_texOff(vec2(0,0));
res += mat4(0.013184003531933,-0.019815810024738,0.024565514177084,-0.016264047473669,-0.004789902828634,-0.002604772802442,-0.002025515073910,-0.009639863856137,0.026651840656996,-0.003949730657041,0.041312821209431,-0.028144242241979,0.005145803559572,-0.005910937208682,-0.004023265093565,-0.011758302338421) * MODEL8_texOff(vec2(0,1));
res += mat4(0.002051030285656,0.002900087973103,-0.008013520389795,-0.010283149778843,-0.009927440434694,0.002643320942298,-0.006546912714839,0.004177617840469,-0.001014225068502,0.002246456919238,0.000416554976255,0.000147411046783,0.010520255193114,0.000703396508470,-0.019444538280368,-0.002309229923412) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.002650174545124,0.004361358005553,0.012095149606466,0.006109422072768,0.000498331035487,-0.004707488697022,0.006199888419360,0.009617049247026,-0.000507421209477,0.003018385497853,-0.004355385899544,-0.004791848361492,0.007878758944571,0.018990825861692,0.015580919571221,-0.009996557608247) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.001047224737704,-0.003182418178767,0.004036995582283,-0.000369804562069,0.000589851231780,0.000141141281347,-0.001425134250894,0.002041344065219,-0.002128507010639,-0.004975072573870,0.003098927205428,0.004113460890949,-0.005189916584641,-0.005434882361442,-0.000237174448557,0.009485634043813) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.001828000182286,0.003177702659741,-0.000653779192362,-0.001039490685798,-0.011697493493557,0.014990610070527,-0.006224511191249,0.009078917093575,-0.001051426865160,-0.000771944818553,0.001466518035159,-0.002335984492674,0.005050195846707,0.002766329329461,-0.007287601940334,-0.002161810174584) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.004130742978305,-0.001981368754059,-0.004321143031120,0.001280497875996,0.018669690936804,-0.005819710902870,-0.004819526802748,-0.000764002907090,0.028440520167351,0.015079948119819,-0.010947273112833,-0.002135111484677,0.020340507850051,0.011852435767651,-0.028855031356215,-0.022556534036994) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.001412780256942,0.002210514154285,-0.000171113293618,0.000104720573290,0.000488952849992,-0.009433351457119,0.008496904745698,0.003597238566726,-0.000659332261421,0.015145212411880,-0.003588154213503,-0.009025865234435,-0.000754819309805,0.008663501590490,-0.003989686723799,-0.017855366691947) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.001696000108495,0.007268460001796,-0.001185752800666,0.008748583495617,0.036933977156878,-0.017222534865141,0.007927401922643,0.012490409426391,0.010559798218310,-0.003352070925757,-0.002526188502088,-0.000331313378410,-0.005839274264872,0.001129674259573,0.003011907683685,0.005684156436473) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.010229377076030,-0.020703790709376,0.011655124835670,-0.017288515344262,-0.023707699030638,-0.019189037382603,0.039766665548086,-0.045475434511900,0.034570455551147,0.038552984595299,-0.044590722769499,-0.032079230993986,-0.043085135519505,-0.030840793624520,0.040601883083582,0.015228032134473) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.044388268142939,0.052143923938274,-0.030343065038323,0.031357493251562,-0.021434038877487,0.042942818254232,-0.028042666614056,0.009879145771265,-0.004184570629150,0.005256530828774,0.004924061242491,-0.010202268138528,-0.006401600781828,-0.027662739157677,0.004632411524653,0.026843933388591) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.001336533343419,-0.001149030984379,0.000369661836885,0.001323859207332,-0.005166911054403,-0.006908141076565,0.011530961841345,-0.023799650371075,0.004345476627350,0.003925318829715,-0.010631850920618,0.000304572429741,0.001246428699233,-0.000846656213980,-0.001956817228347,-0.001260682009161) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.001028899336234,0.007202532608062,-0.010592990554869,-0.000692997477017,-0.015744803473353,0.022477487102151,-0.045037236064672,0.032630641013384,-0.006369411479682,-0.001266022445634,-0.002562912646681,-0.015552459284663,0.016675759106874,0.010739775374532,-0.003674738341942,0.001589668099768) * MODEL9_texOff(vec2(1,0));
res += mat4(0.001620569033548,0.001474632299505,-0.016628496348858,0.026277502998710,0.013256921432912,-0.013194061815739,0.010804775170982,0.018687073141336,0.002444873098284,-0.002441904973239,-0.002915848512203,-0.000045618675358,0.008410426788032,0.015213451348245,-0.004883881658316,-0.011805374175310) * MODEL9_texOff(vec2(1,1));
res += mat4(0.005012876819819,-0.000073233488365,-0.003860934171826,0.000142068936839,0.012441973201931,0.002217941218987,0.003466209862381,-0.002207837533206,-0.004933664109558,0.007009802851826,-0.002499433932826,0.002349824178964,-0.001169924275018,-0.002795045031235,0.007215146441013,0.004463843069971) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.011697519570589,-0.001630995189771,-0.000824595859740,-0.008696374483407,0.027982387691736,0.027353396639228,0.024552514776587,0.020024195313454,0.012801185250282,-0.004469837062061,0.003985878080130,-0.003239147597924,-0.005374198779464,-0.003003421006724,-0.002650216221809,0.002373794326559) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.002222620183602,-0.004669668618590,0.001091000856832,0.006696728523821,0.000596821133513,0.005853622220457,-0.004533255472779,0.003852814435959,-0.001742959953845,-0.005231486167759,0.002637954894453,0.002020898973569,0.001207711407915,-0.007593864575028,0.000975771166850,-0.002219561953098) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.021846722811460,0.000526174902916,0.010452619753778,-0.004700399003923,0.013121891766787,0.009706369601190,0.005042200908065,0.004765491932631,-0.006062096450478,0.020111057907343,-0.013076066039503,0.014248578809202,0.031073460355401,-0.008299145847559,0.003250242676586,-0.014783360064030) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.029709599912167,-0.049966368824244,0.030621152371168,0.038301311433315,-0.045989155769348,-0.032195225358009,-0.043054085224867,-0.033943090587854,0.051064975559711,-0.051772221922874,0.042693056166172,-0.027657689526677,-0.007843182422221,0.034064888954163,-0.002574139041826,0.012067942880094) * MODEL10_texOff(vec2(0,0));
res += mat4(0.000063064268033,0.000145525744301,-0.002493506763130,0.003872606437653,0.009613568894565,-0.007861996069551,0.008164183236659,-0.012549957260489,-0.017595930024981,0.000282668363070,-0.010373388417065,-0.009624495171010,0.011167172342539,-0.012051479890943,0.007154863327742,-0.006916945334524) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.013805760070682,-0.006305690389127,0.022896740585566,0.007519045844674,0.003924792166799,-0.000046187102271,0.018134266138077,0.007347012404352,0.000131423992570,-0.001437285798602,0.003306350205094,0.006717655342072,0.000651050650049,0.002497598063201,0.019131857901812,-0.001539264805615) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.005556139629334,-0.010677758604288,0.017520746216178,0.033974494785070,0.016943864524364,0.014283222146332,0.016126133501530,0.020396903157234,0.007177264895290,-0.004742256365716,0.022234920412302,-0.030043950304389,-0.006431739777327,-0.009158799424767,-0.006198977120221,0.011171095073223) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.000575935759116,-0.001797991688363,0.001346634933725,0.002216719090939,-0.003733528777957,0.002320548053831,0.002709304681048,0.005078454967588,-0.004815565887839,0.003320093965158,-0.013494828715920,0.006179952993989,-0.000160768366186,-0.003259732620791,0.001486827968620,-0.010702241212130) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.002996591618285,-0.007307380903512,0.001698299311101,-0.000812722078990,0.003117263549939,-0.007460510358214,-0.003047094913200,0.001338878762908,-0.002171938540414,-0.002291084267199,0.010785299353302,0.003430657321587,0.004858449567109,-0.000345589738572,-0.005964906420559,-0.005724507849663) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.015694253146648,0.019165972247720,-0.004480137489736,0.006315104663372,-0.026572097092867,0.020683109760284,-0.001441586762667,0.000534296385013,0.001611417857930,-0.000664915191010,0.006530100014061,0.013787120580673,-0.015262229368091,-0.002359862904996,0.016029257327318,0.004782230593264) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.011991037987173,-0.010632609948516,0.005002150777727,-0.002852379344404,0.004501232411712,0.010049723088741,-0.001505104009993,0.003454350167885,-0.000992529792711,-0.000773484760430,-0.000947514548898,-0.000056374978158,0.004039182793349,-0.005460347514600,0.001222237246111,0.008321231231093) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.007825303822756,-0.017833707854152,-0.000245141127380,-0.016239937394857,0.016692815348506,-0.001795023330487,0.022447435185313,-0.015044542960823,0.019981598481536,-0.001320062787272,-0.021531194448471,-0.012132927775383,-0.012199217453599,0.005182878114283,0.013795465230942,0.001552165369503) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.037491783499718,0.037162158638239,-0.036800306290388,0.040626324713230,0.004639791324735,-0.027150444686413,-0.038986001163721,0.008864966221154,-0.003553743707016,0.038583144545555,-0.021194577217102,-0.025235783308744,0.042955942451954,-0.002429850399494,-0.028543995693326,0.005990339908749) * MODEL11_texOff(vec2(0,0));
res += mat4(0.019293222576380,-0.005980435293168,0.020463809370995,-0.010214542038739,-0.030589237809181,0.035492781549692,-0.013434220105410,0.033168029040098,0.007225023582578,-0.007327713072300,0.004584717098624,-0.001220497186296,-0.002176784444600,0.023496782407165,-0.002955239731818,-0.027759607881308) * MODEL11_texOff(vec2(0,1));
res += mat4(0.003726320806891,-0.004434469621629,0.006073256954551,-0.011527549475431,0.004198774695396,-0.001833481015638,0.000714360503480,0.001820756820962,-0.020861612632871,-0.007556844037026,0.014478688128293,-0.000535410712473,0.007602166384459,0.006013205274940,-0.013724385760725,0.005750305484980) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.005931993946433,0.006951185874641,-0.017111871391535,0.014878001995385,-0.004452342167497,-0.002050145994872,0.014061754569411,-0.017963789403439,-0.012533864006400,-0.022764563560486,0.001063990755938,0.031534451991320,-0.011913942173123,0.000741700874642,0.006824849173427,-0.023658456280828) * MODEL11_texOff(vec2(1,0));
res += mat4(0.003265374572948,-0.001598981791176,0.010712494142354,-0.003786907996982,-0.000889476679731,0.004432456102222,-0.014463567174971,0.010132214985788,0.002316043013707,0.001234426163137,0.004765539895743,-0.005398016888648,-0.007902137935162,-0.017050685361028,0.001888990635052,0.014977440237999) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.000518027460203,0.002731201006100,0.002510365331545,-0.001850195811130,-0.005657097790390,0.001710188109428,0.001970412908122,-0.000276367005426,0.001131448312663,0.000918973237276,-0.005595958326012,0.000438865448814,-0.008815894834697,0.004698228556663,0.013777506537735,-0.002304688794538) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.011261926963925,-0.004589749500155,-0.002206270815805,-0.000385225925129,-0.008657754398882,-0.014961558394134,-0.005476796068251,0.001939668087289,0.003213585354388,0.001815208815970,-0.011594959534705,-0.014803633093834,-0.013639593496919,-0.032349701970816,0.017970126122236,0.025323439389467) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001471942523494,-0.008148401044309,0.000455299363239,-0.000609657901805,0.002478036563843,-0.000299891660688,-0.001842973753810,-0.008185273036361,-0.002858360763639,-0.000675511255395,0.001973288133740,-0.002446730155498,-0.006287040188909,-0.004895887337625,0.001323341974057,0.007751998491585) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.019164627417922,0.016731897369027,-0.017687689512968,0.013347237370908,0.001515678013675,-0.004857353400439,0.008670132607222,0.006163061130792,-0.006340226158500,-0.001706158393063,0.008517052046955,0.002674014773220,0.022006750106812,0.004789850208908,-0.029126979410648,0.000500336347613) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.047337360680103,-0.026807321235538,0.045198433101177,-0.025848621502519,-0.026839241385460,-0.002782075200230,0.038573771715164,0.024005938321352,-0.025224657729268,-0.023033801466227,0.028005402535200,0.027850421145558,0.011777104809880,0.033590607345104,0.009082389995456,-0.026852544397116) * MODEL12_texOff(vec2(0,0));
res += mat4(0.007244304288179,-0.035403523594141,0.012952565215528,-0.028884816914797,-0.000721724296454,-0.021611809730530,0.008103541098535,0.023818438872695,0.000521903566550,-0.006486669182777,0.001259784912691,0.009391931816936,0.003549859393388,-0.000289007177344,-0.002361141378060,0.003297587856650) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.000142659017001,-0.003528696950525,-0.005443098954856,0.005364552605897,0.011977394111454,0.004611313343048,-0.010706254281104,-0.006692256312817,0.015543757937849,0.004618223756552,-0.008834554813802,-0.006146729458123,-0.012442683801055,-0.005866848398000,0.004716749303043,0.001463252468966) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.003825465915725,0.001577548682690,0.020934017375112,-0.005203461274505,0.030637098476291,0.024170832708478,-0.030830912292004,-0.025914017111063,0.026701034978032,0.027089230716228,-0.018571570515633,-0.020867060869932,-0.000227010154049,-0.010700215585530,-0.010319768451154,-0.002187884645537) * MODEL12_texOff(vec2(1,0));
res += mat4(0.002450292697176,-0.003419806249440,-0.002273468300700,-0.014910097233951,0.001434860052541,0.015970027074218,-0.001857085037045,-0.012820171192288,0.001002717763186,0.008726839907467,-0.001547363353893,-0.005700348410755,0.001902989344671,0.004798810929060,-0.001618303009309,-0.005770253017545) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!WIDTH LUMA.w 2 *
//!HEIGHT LUMA.h 2 *
//!BIND SUBCONV1
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_2x_LineArt] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(2));
vec4 res = SUBCONV1_tex(base);
return vec4(res[index.x * 2 + index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
